mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
moved protected session expiration scheduling #2855
This commit is contained in:
@@ -6,6 +6,7 @@ const log = require('./log');
|
||||
const sql = require("./sql");
|
||||
const becca = require("../becca/becca");
|
||||
const specialNotesService = require("../services/special_notes");
|
||||
const protectedSessionService = require("../services/protected_session");
|
||||
|
||||
function getRunAtHours(note) {
|
||||
try {
|
||||
@@ -59,4 +60,6 @@ sqlInit.dbReady.then(() => {
|
||||
|
||||
setTimeout(cls.wrap(() => specialNotesService.createMissingSpecialNotes()), 10 * 1000);
|
||||
}
|
||||
|
||||
setInterval(() => protectedSessionService.checkProtectedSessionExpiration(), 30000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user