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)