fix: create order request body (#81)
Some checks are pending
it-academy/dry-wash-pl/pipeline/pr-main Build started...
it-academy/dry-wash-pl/pipeline/head This commit looks good

This commit is contained in:
RustamRu 2025-02-09 11:28:15 +03:00
parent 0ec9e146b9
commit 3cdc47b91b

View File

@ -13,7 +13,7 @@ export const landingApi = api.injectEndpoints({
createOrder: mutation<CreateOrder.Response, CreateOrder.Params>({
query: ({ body }) => ({
url: `/order/create`,
params: { body },
body,
method: 'POST'
}),
transformResponse: extractBodyFromResponse<CreateOrder.Response>,