From b144b0690338e44037f5299c87be93fdbf5fe5d3 Mon Sep 17 00:00:00 2001 From: Mothana Date: Thu, 7 Mar 2024 21:29:55 +0400 Subject: [PATCH] fix operationId in newBlockHandler --- src/services/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/main/index.ts b/src/services/main/index.ts index 61a8d924..115988de 100644 --- a/src/services/main/index.ts +++ b/src/services/main/index.ts @@ -103,7 +103,7 @@ export default class { throw new Error("unable to flag chain transaction as paid") } await this.storage.userStorage.IncrementUserBalance(userAddress.user.user_id, amount - serviceFee, tx) - const operationId = `${Types.UserOperationType.INCOMING_TX}-${userAddress.serial_id}` + const operationId = `${Types.UserOperationType.INCOMING_TX}-${serialId}` const op = { amount, paidAtUnix: Date.now() / 1000, inbound: true, type: Types.UserOperationType.INCOMING_TX, identifier: userAddress.address, operationId, network_fee: 0, service_fee: serviceFee, confirmed: true, tx_hash: c.tx.tx_hash, internal: c.tx.internal } this.sendOperationToNostr(userAddress.linkedApplication!, userAddress.user.user_id, op) })