From 4a2af32f6b75ef0e69f847604ef88bc4c5cd7af0 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Thu, 28 Oct 2021 20:41:46 +0100 Subject: [PATCH] Server: Remove session expiration for now --- packages/server/src/utils/setupTaskService.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/server/src/utils/setupTaskService.ts b/packages/server/src/utils/setupTaskService.ts index 3d3ee73dcd8..60f5d0e5625 100644 --- a/packages/server/src/utils/setupTaskService.ts +++ b/packages/server/src/utils/setupTaskService.ts @@ -30,12 +30,12 @@ export default function(env: Env, models: Models, config: Config): TaskService { run: (models: Models) => models.user().handleOversizedAccounts(), }, - { - id: TaskId.DeleteExpiredSessions, - description: 'Delete expired sessions', - schedule: '0 */6 * * *', - run: (models: Models) => models.session().deleteExpiredSessions(), - }, + // { + // id: TaskId.DeleteExpiredSessions, + // description: 'Delete expired sessions', + // schedule: '0 */6 * * *', + // run: (models: Models) => models.session().deleteExpiredSessions(), + // }, ]; if (config.isJoplinCloud) {