mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
change a url
This commit is contained in:
parent
db58efbe65
commit
4986cef86d
@ -130,7 +130,7 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
}),
|
}),
|
||||||
deleteImage: build.mutation<void, ImageDTO>({
|
deleteImage: build.mutation<void, ImageDTO>({
|
||||||
query: ({ image_name }) => ({
|
query: ({ image_name }) => ({
|
||||||
url: `images/i/${image_name}`,
|
url: `imagesv2/i/${image_name}`,
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
}),
|
}),
|
||||||
async onQueryStarted(imageDTO, { dispatch, queryFulfilled }) {
|
async onQueryStarted(imageDTO, { dispatch, queryFulfilled }) {
|
||||||
@ -355,11 +355,11 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
imageDTO.board_id ?? 'none'
|
imageDTO.board_id ?? 'none'
|
||||||
)(getState())
|
)(getState())
|
||||||
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
||||||
imageDTO.board_id ?? 'none'
|
imageDTO.board_id ?? 'none'
|
||||||
)(getState());
|
)(getState());
|
||||||
|
|
||||||
// IF it eligible for insertion into existing $cache
|
// IF it eligible for insertion into existing $cache
|
||||||
// "eligible" means either:
|
// "eligible" means either:
|
||||||
@ -524,11 +524,11 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
boardId ?? 'none'
|
boardId ?? 'none'
|
||||||
)(getState())
|
)(getState())
|
||||||
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
||||||
boardId ?? 'none'
|
boardId ?? 'none'
|
||||||
)(getState());
|
)(getState());
|
||||||
|
|
||||||
const isCacheFullyPopulated =
|
const isCacheFullyPopulated =
|
||||||
currentCache.data &&
|
currentCache.data &&
|
||||||
@ -639,11 +639,11 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
boardId ?? 'none'
|
boardId ?? 'none'
|
||||||
)(getState())
|
)(getState())
|
||||||
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
||||||
boardId ?? 'none'
|
boardId ?? 'none'
|
||||||
)(getState());
|
)(getState());
|
||||||
|
|
||||||
const isCacheFullyPopulated =
|
const isCacheFullyPopulated =
|
||||||
currentCache.data &&
|
currentCache.data &&
|
||||||
@ -1071,11 +1071,11 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
imageDTO.board_id ?? 'none'
|
imageDTO.board_id ?? 'none'
|
||||||
)(getState())
|
)(getState())
|
||||||
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
||||||
imageDTO.board_id ?? 'none'
|
imageDTO.board_id ?? 'none'
|
||||||
)(getState());
|
)(getState());
|
||||||
|
|
||||||
const isCacheFullyPopulated =
|
const isCacheFullyPopulated =
|
||||||
currentCache.data &&
|
currentCache.data &&
|
||||||
@ -1213,11 +1213,11 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
imageDTO.board_id ?? 'none'
|
imageDTO.board_id ?? 'none'
|
||||||
)(getState())
|
)(getState())
|
||||||
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
||||||
imageDTO.board_id ?? 'none'
|
imageDTO.board_id ?? 'none'
|
||||||
)(getState());
|
)(getState());
|
||||||
|
|
||||||
const isCacheFullyPopulated =
|
const isCacheFullyPopulated =
|
||||||
currentCache.data &&
|
currentCache.data &&
|
||||||
@ -1354,11 +1354,11 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
new_board_id ?? 'none'
|
new_board_id ?? 'none'
|
||||||
)(getState())
|
)(getState())
|
||||||
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
||||||
new_board_id ?? 'none'
|
new_board_id ?? 'none'
|
||||||
)(getState());
|
)(getState());
|
||||||
|
|
||||||
const isCacheFullyPopulated =
|
const isCacheFullyPopulated =
|
||||||
currentCache.data &&
|
currentCache.data &&
|
||||||
@ -1502,11 +1502,11 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
imageDTO.board_id ?? 'none'
|
imageDTO.board_id ?? 'none'
|
||||||
)(getState())
|
)(getState())
|
||||||
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
: boardsApi.endpoints.getBoardAssetsTotal.select(
|
||||||
imageDTO.board_id ?? 'none'
|
imageDTO.board_id ?? 'none'
|
||||||
)(getState());
|
)(getState());
|
||||||
|
|
||||||
const isCacheFullyPopulated =
|
const isCacheFullyPopulated =
|
||||||
currentCache.data &&
|
currentCache.data &&
|
||||||
|
Loading…
Reference in New Issue
Block a user