Skip to content

Commit

Permalink
Fix Err undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis authored Sep 20, 2023
1 parent af0a7a3 commit 84aab42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/resolvers/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export default {
}

if (decoded.num_msat !== milliamount) {
throw new Err('invoice has incorrect amount')
throw new Error('invoice has incorrect amount')
}
// take pr and createWithdrawl
return await createWithdrawal(parent, { invoice: res2.pr, maxFee }, { me, models, lnd })
Expand Down

0 comments on commit 84aab42

Please sign in to comment.