aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils')
-rw-r--r--shared/extra-utils/users/notifications-command.ts2
-rw-r--r--shared/extra-utils/users/notifications.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/users/notifications-command.ts b/shared/extra-utils/users/notifications-command.ts
index 2d79a3747..692420b8b 100644
--- a/shared/extra-utils/users/notifications-command.ts
+++ b/shared/extra-utils/users/notifications-command.ts
@@ -71,7 +71,7 @@ export class NotificationsCommand extends AbstractCommand {
71 }) 71 })
72 } 72 }
73 73
74 async getLastest (options: OverrideCommandOptions = {}) { 74 async getLatest (options: OverrideCommandOptions = {}) {
75 const { total, data } = await this.list({ 75 const { total, data } = await this.list({
76 ...options, 76 ...options,
77 start: 0, 77 start: 0,
diff --git a/shared/extra-utils/users/notifications.ts b/shared/extra-utils/users/notifications.ts
index 7db4bfd3f..07ccb0f8d 100644
--- a/shared/extra-utils/users/notifications.ts
+++ b/shared/extra-utils/users/notifications.ts
@@ -727,7 +727,7 @@ async function checkNotification (options: CheckerBaseParams & {
727 const check = options.check || { web: true, mail: true } 727 const check = options.check || { web: true, mail: true }
728 728
729 if (check.web) { 729 if (check.web) {
730 const notification = await server.notifications.getLastest({ token: token }) 730 const notification = await server.notifications.getLatest({ token: token })
731 731
732 if (notification || checkType !== 'absence') { 732 if (notification || checkType !== 'absence') {
733 notificationChecker(notification, checkType) 733 notificationChecker(notification, checkType)