update is_private name

This commit is contained in:
chainchompa 2024-07-08 22:03:12 -04:00
parent 79a7b11214
commit 0e092c0fb5
3 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ class DeleteBoardResult(BaseModel):
) )
async def create_board( async def create_board(
board_name: str = Query(description="The name of the board to create"), 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: ) -> BoardDTO:
"""Creates a board""" """Creates a board"""
try: try:

View File

@ -88,10 +88,10 @@ export const boardsApi = api.injectEndpoints({
*/ */
createBoard: build.mutation<BoardDTO, CreateBoardArg>({ createBoard: build.mutation<BoardDTO, CreateBoardArg>({
query: ({ board_name, private_board }) => ({ query: ({ board_name, is_private }) => ({
url: buildBoardsUrl(), url: buildBoardsUrl(),
method: 'POST', method: 'POST',
params: { board_name, private_board }, params: { board_name, is_private },
}), }),
invalidatesTags: [{ type: 'Board', id: LIST_TAG }], invalidatesTags: [{ type: 'Board', id: LIST_TAG }],
}), }),

View File

@ -15015,7 +15015,7 @@ export type operations = {
/** @description The name of the board to create */ /** @description The name of the board to create */
board_name: string; board_name: string;
/** @description Whether the board is private */ /** @description Whether the board is private */
private_board?: boolean; is_private?: boolean;
}; };
}; };
responses: { responses: {