Fix payments spinning forever.

This commit is contained in:
Cody Henthorne
2023-08-28 23:00:26 -04:00
committed by Greyson Parrelli
parent 6a21106347
commit b83080e2d7
5 changed files with 74 additions and 5 deletions

View File

@@ -652,10 +652,12 @@ object DataMessageProcessor {
} catch (e: MmsException) {
throw StorageFailedException(e, metadata.sourceServiceId.toString(), metadata.sourceDeviceId)
} finally {
ApplicationDependencies.getJobManager()
.startChain(PaymentTransactionCheckJob(uuid, queue))
.then(PaymentLedgerUpdateJob.updateLedger())
.enqueue()
SignalDatabase.runPostSuccessfulTransaction {
ApplicationDependencies.getJobManager()
.startChain(PaymentTransactionCheckJob(uuid, queue))
.then(PaymentLedgerUpdateJob.updateLedger())
.enqueue()
}
}
return null