cast enum in reverse_withdrawl

This commit is contained in:
keyan 2023-08-01 07:00:46 -05:00
parent 6f445f2545
commit f135eae16d
1 changed files with 1 additions and 1 deletions

View File

@ -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)