From 0e092c0fb5f90751af0622e4b76c618a5321ff09 Mon Sep 17 00:00:00 2001 From: chainchompa Date: Mon, 8 Jul 2024 22:03:12 -0400 Subject: [PATCH] update is_private name --- invokeai/app/api/routers/boards.py | 2 +- invokeai/frontend/web/src/services/api/endpoints/boards.ts | 4 ++-- invokeai/frontend/web/src/services/api/schema.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/app/api/routers/boards.py b/invokeai/app/api/routers/boards.py index fb09c0b463..fb828f4dc5 100644 --- a/invokeai/app/api/routers/boards.py +++ b/invokeai/app/api/routers/boards.py @@ -32,7 +32,7 @@ class DeleteBoardResult(BaseModel): ) async def create_board( board_name: str = Query(description="The name of the board to create"), - private_board: bool = Query(default=False, description="Whether the board is private"), + is_private: bool = Query(default=False, description="Whether the board is private"), ) -> BoardDTO: """Creates a board""" try: diff --git a/invokeai/frontend/web/src/services/api/endpoints/boards.ts b/invokeai/frontend/web/src/services/api/endpoints/boards.ts index 026ffdfa56..6cfed5609a 100644 --- a/invokeai/frontend/web/src/services/api/endpoints/boards.ts +++ b/invokeai/frontend/web/src/services/api/endpoints/boards.ts @@ -88,10 +88,10 @@ export const boardsApi = api.injectEndpoints({ */ createBoard: build.mutation({ - query: ({ board_name, private_board }) => ({ + query: ({ board_name, is_private }) => ({ url: buildBoardsUrl(), method: 'POST', - params: { board_name, private_board }, + params: { board_name, is_private }, }), invalidatesTags: [{ type: 'Board', id: LIST_TAG }], }), diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts index 4318db2df4..fc41a1dc8e 100644 --- a/invokeai/frontend/web/src/services/api/schema.ts +++ b/invokeai/frontend/web/src/services/api/schema.ts @@ -15015,7 +15015,7 @@ export type operations = { /** @description The name of the board to create */ board_name: string; /** @description Whether the board is private */ - private_board?: boolean; + is_private?: boolean; }; }; responses: {