progress of tar import through WS

This commit is contained in:
zadam
2019-02-10 16:36:25 +01:00
parent 51175e3676
commit cde68abec9
11 changed files with 47 additions and 18 deletions

View File

@@ -397,7 +397,7 @@ async function deleteNote(branch) {
}
async function cleanupDeletedNotes() {
const cutoffDate = new Date(new Date().getTime() - 48 * 3600 * 1000);
const cutoffDate = new Date(Date.now() - 48 * 3600 * 1000);
// it's better to not use repository for this because it will complain about saving protected notes
// out of protected session