fix(garbage collection): Fixing bug that was deleting valid offers

This commit is contained in:
Chris Troutner
2022-11-02 17:02:36 -07:00
parent 2da319f896
commit 9065900608
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -579,7 +579,7 @@ class OfferUseCases {
}
// If the Offer UTXO is spent, delete the Offer model.
if (!utxoStatus) {
if (utxoStatus === false) {
console.log('utxoStatus: ', utxoStatus)
console.log(`Spent UTXO detected. Deleting this Offer: ${JSON.stringify(thisOffer, null, 2)}`)
await thisOffer.remove()
+1 -1
View File
@@ -235,7 +235,7 @@ class OrderLib {
}
// If the Order UTXO is spent, delete the Order model.
if (!utxoStatus) {
if (utxoStatus === false) {
console.log('utxoStatus: ', utxoStatus)
console.log(`Spent UTXO detected. Deleting this Order: ${JSON.stringify(thisOrder, null, 2)}`)
await thisOrder.remove()