rsync: fix integrity check
This commit is contained in:
+2
-1
@@ -217,7 +217,7 @@ async function startIntegrityCheck(backup, auditSource) {
|
||||
|
||||
await eventlog.add(eventlog.ACTION_BACKUP_INTEGRITY_START, auditSource, { taskId, backupId: backup.id });
|
||||
|
||||
// background
|
||||
// background
|
||||
tasks.startTask(taskId, {})
|
||||
.then(async () => debug(`startIntegrityCheck: task completed`))
|
||||
.catch((error) => debug(`startIntegrityCheck: task error. ${error.message}`))
|
||||
@@ -239,6 +239,7 @@ async function stopIntegrityCheck(backup, auditSource) {
|
||||
}
|
||||
|
||||
async function clearTasks() {
|
||||
debug('clearTasks: clearing task ids');
|
||||
await database.query('UPDATE backups SET integrityCheckTaskId = NULL');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user