From 31876d2cf97496bca79efbd21a7c0feb015ceff2 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 9 Dec 2020 22:45:34 +0100 Subject: [PATCH] fix automatically scheduled note deletion --- src/services/notes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/notes.js b/src/services/notes.js index f7353eeb5..641af74be 100644 --- a/src/services/notes.js +++ b/src/services/notes.js @@ -831,9 +831,9 @@ function getNoteIdMapping(origNote) { sqlInit.dbReady.then(() => { // first cleanup kickoff 5 minutes after startup - setTimeout(cls.wrap(eraseDeletedNotes), 5 * 60 * 1000); + setTimeout(cls.wrap(() => eraseDeletedNotes()), 5 * 60 * 1000); - setInterval(cls.wrap(eraseDeletedNotes), 4 * 3600 * 1000); + setInterval(cls.wrap(() => eraseDeletedNotes()), 4 * 3600 * 1000); }); module.exports = {