diff options
| author | Adam Soltys <[email protected]> | 2025-03-12 08:52:35 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-03-12 08:52:35 -0700 |
| commit | 69c2e2c0066304679abacd8314fe4de9dcb71287 (patch) | |
| tree | ff4fca6eaba4d2a5b1c9b43846b55ec51b4d58da | |
| parent | 70d103470e3aaa9d127867571589cf3de8f23523 (diff) | |
| download | coinos-server-69c2e2c0066304679abacd8314fe4de9dcb71287.tar.gz coinos-server-69c2e2c0066304679abacd8314fe4de9dcb71287.zip | |
notification timestamps in seconds
| -rw-r--r-- | lib/notifications.ts | 4 |
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({ |
