1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-14 18:27:44 +02:00

Server: Enabled task to automatically delete sessions every 6 hours

This commit is contained in:
Laurent Cozic 2022-02-01 17:57:01 +00:00
parent 1afcb27601
commit 69170dd362

View File

@ -46,12 +46,12 @@ 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(),
// },
{
id: TaskId.DeleteExpiredSessions,
description: taskIdToLabel(TaskId.DeleteExpiredSessions),
schedule: '0 */6 * * *',
run: (models: Models) => models.session().deleteExpiredSessions(),
},
];
if (config.USER_DATA_AUTO_DELETE_ENABLED) {