]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/extra-utils/users/notifications.ts
Fix typo
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / users / notifications.ts
index 7db4bfd3fc7109db9611c314b780d2aeb0c5dfa5..07ccb0f8dc826a8719bbd8b67140fbca22a2e000 100644 (file)
@@ -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)