Server: Enabled task to automatically delete sessions every 6 hours

pull/6086/head
Laurent Cozic 2022-02-01 17:57:01 +00:00
parent 1afcb27601
commit 69170dd362
1 changed files with 6 additions and 6 deletions

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) {