From f135eae16dae381ffe688269db4d8813e8551274 Mon Sep 17 00:00:00 2001 From: keyan Date: Tue, 1 Aug 2023 07:00:46 -0500 Subject: [PATCH] cast enum in reverse_withdrawl --- worker/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/wallet.js b/worker/wallet.js index 6602d373..bcd7c3dc 100644 --- a/worker/wallet.js +++ b/worker/wallet.js @@ -73,7 +73,7 @@ function checkWithdrawal ({ boss, models, lnd }) { status = 'ROUTE_NOT_FOUND' } await serialize(models, models.$executeRaw` - SELECT reverse_withdrawl(${id}::INTEGER, ${status})`) + SELECT reverse_withdrawl(${id}::INTEGER, ${status}::"WithdrawlStatus")`) } else { // we need to requeue to check again in 5 seconds await boss.send('checkWithdrawal', { id, hash }, walletOptions)