summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/PushNotificationService.ts
diff options
context:
space:
mode:
authorzyoshoka <107108195+zyoshoka@users.noreply.github.com>2024-04-07 21:14:13 +0900
committerGitHub <noreply@github.com>2024-04-07 21:14:13 +0900
commit959cc8ff37de620bf0082f48f59963c00d045fe9 (patch)
treed1e98d9d4ac77f89fe3d8812a158c7ee997f8596 /packages/backend/src/core/PushNotificationService.ts
parentfix(deps): aiscript-vscodeのインストール中にWARNが出るのを修... (diff)
downloadsharkey-959cc8ff37de620bf0082f48f59963c00d045fe9.tar.gz
sharkey-959cc8ff37de620bf0082f48f59963c00d045fe9.tar.bz2
sharkey-959cc8ff37de620bf0082f48f59963c00d045fe9.zip
refactor(general): use `Date.now()` instead of creating a new `Date` instance (#13671)
Diffstat (limited to 'packages/backend/src/core/PushNotificationService.ts')
-rw-r--r--packages/backend/src/core/PushNotificationService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/PushNotificationService.ts b/packages/backend/src/core/PushNotificationService.ts
index 3b706d9854..6a845b951d 100644
--- a/packages/backend/src/core/PushNotificationService.ts
+++ b/packages/backend/src/core/PushNotificationService.ts
@@ -101,7 +101,7 @@ export class PushNotificationService implements OnApplicationShutdown {
type,
body: (type === 'notification' || type === 'unreadAntennaNote') ? truncateBody(type, body) : body,
userId,
- dateTime: (new Date()).getTime(),
+ dateTime: Date.now(),
}), {
proxy: this.config.proxy,
}).catch((err: any) => {