diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/payments.js | 4 | ||||
| -rw-r--r-- | lib/whitelist.js | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/payments.js b/lib/payments.js index 2220395a..14bdf7ae 100644 --- a/lib/payments.js +++ b/lib/payments.js @@ -182,7 +182,7 @@ export let credit = async (hash, amount, memo, ref, type = types.internal) => { notify(user, `Received ${amount} sats`); callWebhook(invoice, p); - if (user.verified) { + if (user.verified && user.notify) { mail(user, "Payment received", templates.paymentReceived, { username, sats: @@ -191,7 +191,7 @@ export let credit = async (hash, amount, memo, ref, type = types.internal) => { p.amount ), link: `${process.env.URL}/payment/${p.id}` - }); + }); } mqtt1.publish( diff --git a/lib/whitelist.js b/lib/whitelist.js index 8c988ab5..a1a48223 100644 --- a/lib/whitelist.js +++ b/lib/whitelist.js @@ -1,4 +1,5 @@ export default [ + "notify", "anon", "balance", "address", |
