fix(backend): DELETE /webhooks/:id returns 204 No Content

Matches REST convention and the frontend api-client's existing 204
fast-path, avoiding a JSON-parse crash on an empty response body.
This commit is contained in:
Nick Szaunig committed 2026-08-23 06:58:13 +02:00
1 parent 59fdc816a0
commit 2458927d38
2 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -170,6 +170,6 @@ describe('Webhooks (e2e)', () => {
return request(app.getHttpServer())
.delete(`/api/v1/webhooks/${subscriptionId}`)
.set('Authorization', `Bearer ${adminAccessToken}`)
.expect(200);
.expect(204);
});
});