mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
web: move backup time forward when it is skipped
This commit is contained in:
@@ -126,8 +126,8 @@ export async function resetReminders() {
|
||||
[
|
||||
{
|
||||
text: "Later",
|
||||
onClick: () => {
|
||||
createBackup(false);
|
||||
onClick: async () => {
|
||||
await db.backup.updateBackupTime();
|
||||
openedToast?.hide();
|
||||
openedToast = null;
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user