diff options
Diffstat (limited to 'routes/invoices.js')
| -rw-r--r-- | routes/invoices.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/invoices.js b/routes/invoices.js index 092b5eae..934ff96c 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -47,7 +47,8 @@ app.post("/invoice", ah(async (req, res, next) => { const exists = await db.Invoice.findOne({ where: { [Op.or]: { - address: invoice.address || "undefined", + address: invoice.address || "", + unconfidential: invoice.unconfidential || "", text: invoice.text, }, }, |
