Skip to content

Commit

Permalink
fix: ignore non-cancel order updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler committed Feb 28, 2025
1 parent 0144e3e commit 16396bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/webhook.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ export class WebhookService {
break;
}
case 'ORDER_UPDATED': {
if (dtoOrder.status !== 'CANCELLED') {
return;
}
await this.database.updateFourthwallOrder({
id: dtoOrder.id,
discount: dtoOrder.amounts.discount.value,
Expand Down

0 comments on commit 16396bc

Please sign in to comment.