cast enum in reverse_withdrawl
This commit is contained in:
parent
6f445f2545
commit
f135eae16d
|
@ -73,7 +73,7 @@ function checkWithdrawal ({ boss, models, lnd }) {
|
||||||
status = 'ROUTE_NOT_FOUND'
|
status = 'ROUTE_NOT_FOUND'
|
||||||
}
|
}
|
||||||
await serialize(models, models.$executeRaw`
|
await serialize(models, models.$executeRaw`
|
||||||
SELECT reverse_withdrawl(${id}::INTEGER, ${status})`)
|
SELECT reverse_withdrawl(${id}::INTEGER, ${status}::"WithdrawlStatus")`)
|
||||||
} else {
|
} else {
|
||||||
// we need to requeue to check again in 5 seconds
|
// we need to requeue to check again in 5 seconds
|
||||||
await boss.send('checkWithdrawal', { id, hash }, walletOptions)
|
await boss.send('checkWithdrawal', { id, hash }, walletOptions)
|
||||||
|
|
Loading…
Reference in New Issue