diff options
| author | Adam Soltys <[email protected]> | 2021-06-29 10:28:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-07-07 12:42:19 -0700 |
| commit | 0fb703b85d99c888d1df971e7c3562f7918e0ff8 (patch) | |
| tree | 2f167df25b172c3b7166952444e39e7f582e93c4 /routes/invoices.js | |
| parent | 9bf4080d67d6342624c8f1fb543acab00191f730 (diff) | |
| download | coinos-server-0fb703b85d99c888d1df971e7c3562f7918e0ff8.tar.gz coinos-server-0fb703b85d99c888d1df971e7c3562f7918e0ff8.zip | |
add webhooks to invoices
Diffstat (limited to 'routes/invoices.js')
| -rw-r--r-- | routes/invoices.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/invoices.js b/routes/invoices.js index f7682bfe..c188811e 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -55,7 +55,7 @@ app.post( invoice.amount, invoice.tip, invoice.currency, - `${invoice.text.substr(0, 8)}..${invoice.text.substr(-6)}`, + invoice.text && `${invoice.text.substr(0, 8)}..${invoice.text.substr(-6)}`, ); if (!invoice.tip) invoice.tip = 0; |
