From 5d3c5f27977bf8d690a606c65a0f8ce11f4341ed Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 Nov 2021 08:25:07 +0100 Subject: Fix typo --- shared/extra-utils/users/notifications-command.ts | 2 +- shared/extra-utils/users/notifications.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'shared/extra-utils') 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 { }) } - async getLastest (options: OverrideCommandOptions = {}) { + async getLatest (options: OverrideCommandOptions = {}) { const { total, data } = await this.list({ ...options, 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 & { const check = options.check || { web: true, mail: true } if (check.web) { - const notification = await server.notifications.getLastest({ token: token }) + const notification = await server.notifications.getLatest({ token: token }) if (notification || checkType !== 'absence') { notificationChecker(notification, checkType) -- cgit v1.2.3