fix: create order request body (#81) #84
@ -13,7 +13,7 @@ export const landingApi = api.injectEndpoints({
|
|||||||
createOrder: mutation<CreateOrder.Response, CreateOrder.Params>({
|
createOrder: mutation<CreateOrder.Response, CreateOrder.Params>({
|
||||||
query: ({ body }) => ({
|
query: ({ body }) => ({
|
||||||
url: `/order/create`,
|
url: `/order/create`,
|
||||||
params: { body },
|
body,
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
}),
|
}),
|
||||||
transformResponse: extractBodyFromResponse<CreateOrder.Response>,
|
transformResponse: extractBodyFromResponse<CreateOrder.Response>,
|
||||||
|
Loading…
Reference in New Issue
Block a user