fix(webpush): preserve original creation timestamp when updating subscriptions

Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me>
This commit is contained in:
0xsysr3ll
2025-12-03 21:54:49 +01:00
parent 2822240d0f
commit 2fb742e2a3

View File

@@ -214,7 +214,6 @@ router.post<
existingByEndpoint.auth = req.body.auth;
existingByEndpoint.p256dh = req.body.p256dh;
existingByEndpoint.userAgent = req.body.userAgent;
existingByEndpoint.createdAt = new Date();
await userPushSubRepository.save(existingByEndpoint);