log invoice creation error
This commit is contained in:
parent
5e822d8499
commit
10b2c85db1
@ -62,6 +62,7 @@ export default {
|
||||
// set expires at to 3 hours into future
|
||||
const expiresAt = new Date(new Date().setHours(new Date().getHours() + 3))
|
||||
const description = `${amount} sats for @${me.name} on stacker.news`
|
||||
try {
|
||||
const invoice = await createInvoice({
|
||||
description,
|
||||
lnd,
|
||||
@ -82,6 +83,10 @@ export default {
|
||||
}
|
||||
|
||||
return await models.invoice.create({ data })
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
throw error
|
||||
}
|
||||
},
|
||||
createWithdrawl: async (parent, { invoice, maxFee }, { me, models, lnd }) => {
|
||||
if (!me) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user