mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix: send subscription_id as query param in autopay PATCH, not in body
This commit is contained in:
@@ -305,7 +305,8 @@ export const subscriptionApi = {
|
||||
}> => {
|
||||
const response = await apiClient.patch(
|
||||
'/cabinet/subscription/autopay',
|
||||
bodyWithSubId({ enabled, days_before: daysBefore }, subscriptionId),
|
||||
{ enabled, days_before: daysBefore },
|
||||
withSubId(subscriptionId),
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user