Skip to content

Commit

Permalink
[Actions Loops] Update delete method to a POST (#1371)
Browse files Browse the repository at this point in the history
* Update delete method to a POST

* commit test fix

---------

Co-authored-by: Adam Kaczmarek <[email protected]>
  • Loading branch information
askkaz and askkaz authored Jul 3, 2023
1 parent 82d751c commit ac573a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Loops', () => {
})
describe('deletes', () => {
it('should support gdpr deletes', async () => {
nock('https://app.loops.so/api/v1').delete('/contacts/delete').reply(200, {})
nock('https://app.loops.so/api/v1').post('/contacts/delete').reply(200, {})
if (testDestination.onDelete) {
const response = await testDestination.onDelete(
{ type: 'track', userId: '[email protected]' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const destination: DestinationDefinition<Settings> = {
},
onDelete: async (request, { payload }) => {
return request('https://app.loops.so/api/v1/contacts/delete', {
method: 'DELETE',
method: 'POST',
json: {
userId: [payload.userId]
}
Expand Down

0 comments on commit ac573a6

Please sign in to comment.