rsync: fix integrity check

This commit is contained in:
Girish Ramakrishnan
2026-02-15 21:50:01 +01:00
parent d24bfabdc1
commit 601e787500
3 changed files with 55 additions and 51 deletions
+2 -1
View File
@@ -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');
}