diff options
| author | Adam Soltys <[email protected]> | 2025-08-21 11:30:51 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-08-21 11:30:51 -0700 |
| commit | d2b99925d1e09de63207b4948d6970065dc64371 (patch) | |
| tree | 69bd85ca62af98c5e4fc6cc40516c74c4a31558c | |
| parent | 3b07e42a1b2495ac50b42ff70f2fc4fe0d4017b3 (diff) | |
| download | coinos-server-d2b99925d1e09de63207b4948d6970065dc64371.tar.gz coinos-server-d2b99925d1e09de63207b4948d6970065dc64371.zip | |
add tip to amount
| -rw-r--r-- | routes/invoices.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/invoices.ts b/routes/invoices.ts index 6be1efec..37b79e8a 100644 --- a/routes/invoices.ts +++ b/routes/invoices.ts @@ -57,6 +57,7 @@ export default { const invoice = await g(`invoice:${id}`); invoice.tip = body.invoice.tip; + invoice.amount += invoice.tip; await s(`invoice:${id}`, invoice); res.send(invoice); |
