fix(garbage): Debugging garbage collection

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