mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix typo
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user