From a33c149de33de8a3d634e4bfd78c8db6a3a86d61 Mon Sep 17 00:00:00 2001 From: Jonghun An Date: Sun, 30 Jul 2023 03:49:27 +0900 Subject: [PATCH] fix: delete-deck client-api response promise --- packages/api/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index fe242d7..e53f762 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -25,7 +25,7 @@ const card = JSON_APIS({ // get card by id getCards: ({ id }: { id: string }) => client.session.get<{ result: Card[] | null }>(`decks/id=${id}/cards`), /* delete card by id */ - deleteCard: ({ id }: { id: string }) => client.session.delete>(`cards/id=${id}`), + deleteCard: ({ id }: { id: string }) => client.session.delete<{ result: boolean }>(`cards/id=${id}`), }); /* deck api */