only push update if payment status actually changed
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user