aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-03-12 08:52:35 -0700
committerAdam Soltys <[email protected]>2025-03-12 08:52:35 -0700
commit69c2e2c0066304679abacd8314fe4de9dcb71287 (patch)
treeff4fca6eaba4d2a5b1c9b43846b55ec51b4d58da /lib
parent70d103470e3aaa9d127867571589cf3de8f23523 (diff)
downloadcoinos-server-69c2e2c0066304679abacd8314fe4de9dcb71287.tar.gz
coinos-server-69c2e2c0066304679abacd8314fe4de9dcb71287.zip
notification timestamps in seconds
Diffstat (limited to 'lib')
-rw-r--r--lib/notifications.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/notifications.ts b/lib/notifications.ts
index 0c890c07..528ac0ae 100644
--- a/lib/notifications.ts
+++ b/lib/notifications.ts
@@ -96,8 +96,8 @@ export const nwcNotify = async (p) => {
payment_hash: payment_hash,
amount: Math.abs(p.amount) * 1000,
fees_paid: (parseInt(p.fee) || 0) * 1000,
- created_at: p.created,
- settled_at: p.created,
+ created_at: Math.round(p.created / 1000),
+ settled_at: Math.round(p.created / 1000),
};
const payload = JSON.stringify({