web: move backup time forward when it is skipped

This commit is contained in:
Abdullah Atta
2022-10-17 22:39:54 +05:00
parent 6bf14512f9
commit d35d355fb3
2 changed files with 5 additions and 2 deletions

View File

@@ -42,6 +42,9 @@ export default class Backup {
return this._db.storage.read("lastBackupTime");
}
async updateBackupTime() {
await this._db.storage.write("lastBackupTime", Date.now());
}
/**
*
* @param {"web"|"mobile"|"node"} type