fix(helcim): use Number(id) in wrapped PATCH /subscriptions body
This commit is contained in:
parent
de4bfdcc16
commit
47f2d666dd
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ export const cancelHelcimSubscription = (id) =>
|
||||||
export const updateHelcimSubscription = (id, payload) =>
|
export const updateHelcimSubscription = (id, payload) =>
|
||||||
helcimFetch('/subscriptions', {
|
helcimFetch('/subscriptions', {
|
||||||
method: 'PATCH',
|
method: 'PATCH',
|
||||||
body: { subscriptions: [{ id: String(id), ...payload }] },
|
body: { subscriptions: [{ id: Number(id), ...payload }] },
|
||||||
errorMessage: 'Subscription update failed'
|
errorMessage: 'Subscription update failed'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue