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:
parent
1afcb27601
commit
69170dd362
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user