1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00

Server: Disable session expiration logic for now

As we do not know how many people have version 2.5+
This commit is contained in:
Laurent Cozic 2022-02-02 19:17:50 +00:00
parent 69170dd362
commit 4c11bbf0da

View File

@ -46,12 +46,17 @@ export default function(env: Env, models: Models, config: Config, services: Serv
run: (models: Models) => models.user().handleOversizedAccounts(),
},
{
id: TaskId.DeleteExpiredSessions,
description: taskIdToLabel(TaskId.DeleteExpiredSessions),
schedule: '0 */6 * * *',
run: (models: Models) => models.session().deleteExpiredSessions(),
},
// This should be enabled eventually. As of version 2.5
// (2021-11-08T11:07:11Z) all Joplin clients support handling of expired
// sessions, however we don't know how many people have Joplin 2.5+ so
// be safe we don't enable it just yet.
// {
// id: TaskId.DeleteExpiredSessions,
// description: taskIdToLabel(TaskId.DeleteExpiredSessions),
// schedule: '0 */6 * * *',
// run: (models: Models) => models.session().deleteExpiredSessions(),
// },
];
if (config.USER_DATA_AUTO_DELETE_ENABLED) {