X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fextra-utils%2Fusers%2Fnotifications.ts;h=07ccb0f8dc826a8719bbd8b67140fbca22a2e000;hb=0882c8e6509b2a4ea48f6c48ecb2aa4aa371500a;hp=7db4bfd3fc7109db9611c314b780d2aeb0c5dfa5;hpb=171efc48e67498406feb6d7873b3482b41505515;p=github%2FChocobozzz%2FPeerTube.git 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)