refactor(general): use Date.now()
instead of creating a new Date
instance (#13671)
This commit is contained in:
parent
2f8fb105a5
commit
959cc8ff37
9 changed files with 13 additions and 13 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue