only push update if payment status actually changed

This commit is contained in:
Blake Kaufman
2026-07-06 13:47:10 -04:00
parent 095f9cd9fd
commit 8c5a2966ff
+3
View File
@@ -1068,6 +1068,9 @@ async function processBitcoinTransactions(
if (!transfer) continue;
const newPaymentStatus = getSparkPaymentStatus(transfer.status);
if (txStateUpdate.paymentStatus === newPaymentStatus) continue;
updatedTxs.push({
id: txStateUpdate.sparkID,
paymentStatus: getSparkPaymentStatus(transfer.status),