2
0

fix(results): 🐛 Make sure delete all works

This commit is contained in:
Baptiste Arnaud
2022-06-19 11:10:11 +02:00
parent d991dd5467
commit 18c5ea5207
5 changed files with 58 additions and 32 deletions

View File

@ -81,16 +81,15 @@ export const deleteResults = async (
typebotId: string,
ids: string[]
) => {
const params = stringify(
{
ids,
workspaceId,
},
{ indices: false }
)
const params = stringify({
workspaceId,
})
return sendRequest({
url: `/api/typebots/${typebotId}/results?${params}`,
method: 'DELETE',
body: {
ids,
},
})
}