From a4034a2d582dcced484ed999e3352ee51091047d Mon Sep 17 00:00:00 2001 From: Egor Gorbachev <7gorbachevm@gmail.com> Date: Sat, 16 Mar 2024 17:22:42 +0700 Subject: [PATCH] Tell how many cards created bot (#24) * Rename order endpoint * Tell how many cards created during mass creation --- src/api/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/api.ts b/src/api/api.ts index b3745ef9..9ff5dcab 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -40,7 +40,7 @@ import { DecksMineResponse } from "../../functions/decks-mine.ts"; import { CreateOrderRequest, CreateOrderResponse, -} from "../../functions/order.ts"; +} from "../../functions/order-plan.ts"; import { MyPlansResponse } from "../../functions/my-plans.ts"; import { DuplicateFolderResponse } from "../../functions/duplicate-folder.ts"; import { MyStatisticsResponse } from "../../functions/my-statistics.ts"; @@ -156,7 +156,7 @@ export const decksMineRequest = () => { }; export const createOrderRequest = (planId: number) => { - return request(`/order`, "POST", { + return request(`/order-plan`, "POST", { planId, }); };