Skip to content

Commit

Permalink
Tell how many cards created bot (#24)
Browse files Browse the repository at this point in the history
* Rename order endpoint
* Tell how many cards created during mass creation
  • Loading branch information
kubk authored Mar 16, 2024
1 parent 8523b1c commit a4034a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -156,7 +156,7 @@ export const decksMineRequest = () => {
};

export const createOrderRequest = (planId: number) => {
return request<CreateOrderResponse, CreateOrderRequest>(`/order`, "POST", {
return request<CreateOrderResponse, CreateOrderRequest>(`/order-plan`, "POST", {
planId,
});
};
Expand Down

0 comments on commit a4034a2

Please sign in to comment.