From 69c2e2c0066304679abacd8314fe4de9dcb71287 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 12 Mar 2025 08:52:35 -0700 Subject: notification timestamps in seconds --- lib/notifications.ts | 4 ++-- 1 file 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({ -- cgit v1.2.3