Skip to content

Commit

Permalink
✨ Update verifyEvent return response
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Aug 26, 2024
1 parent 20ff5db commit d2e3cc3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ export class WebhookController {
signature,
secret,
);
return {
data: resp,
};
return resp;
}
}
10 changes: 3 additions & 7 deletions packages/api/src/@core/utils/dtos/openapi.respone.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,9 @@ export const ApiPostGenericJson = (description: string) => {
return applyDecorators(
ApiCreatedResponse({
schema: {
properties: {
data: {
type: 'object',
additionalProperties: true,
description: description,
},
},
type: 'object',
additionalProperties: true,
description: description,
},
}),
);
Expand Down
8 changes: 3 additions & 5 deletions packages/api/swagger/swagger-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,9 @@ paths:
content:
application/json:
schema:
properties:
data:
type: object
additionalProperties: true
description: Dynamic event payload
type: object
additionalProperties: true
description: Dynamic event payload
tags: *ref_0
x-speakeasy-group: webhooks
/ticketing/tickets:
Expand Down

0 comments on commit d2e3cc3

Please sign in to comment.