From 923667cec6d601ff08958b13ab91704efd42636f Mon Sep 17 00:00:00 2001 From: HFazelinia Date: Thu, 21 Nov 2024 09:04:43 +0000 Subject: [PATCH] fix event status when event is just scanned --- .changeset/moody-beers-roll.md | 5 +++++ src/api/events.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/moody-beers-roll.md diff --git a/.changeset/moody-beers-roll.md b/.changeset/moody-beers-roll.md new file mode 100644 index 00000000..9a95d9fb --- /dev/null +++ b/.changeset/moody-beers-roll.md @@ -0,0 +1,5 @@ +--- +'guard-service': patch +--- + +Fix event status when event is just scanned diff --git a/src/api/events.ts b/src/api/events.ts index 0618165f..61f79274 100644 --- a/src/api/events.ts +++ b/src/api/events.ts @@ -71,7 +71,7 @@ const eventsHistoryRoute = (server: FastifySeverInstance) => { sourceTxId: event.sourceTxId, paymentTxId: event.paymentTxId ?? '', rewardTxId: event.spendTxId ?? '', - status: event.result ?? event.status, + status: event.result ?? event.status ?? 'not confirmed yet', }; });