diff --git a/server/src/cronTasks.js b/server/src/cronTasks.js index 8b0ce22..824acb8 100644 --- a/server/src/cronTasks.js +++ b/server/src/cronTasks.js @@ -13,36 +13,6 @@ logInfo({ message: 'Scheduling tasks...' }) -// cron.schedule('*/1 * * * *', async () => { -// logInfo({ -// tags: ['cron', 'wifiDevices'], -// message: 'updateDevicesInfo started' -// }) - -// const devices = await updateDevicesInfo() - -// logInfo({ -// tags: ['cron', 'wifiDevices'], -// message: `updateDevicesInfo updated ${devices} devices` -// }) - -// let mappings = 0 - -// if (devices > 0) { -// logInfo({ -// tags: ['cron', 'user-id'], -// message: `updateUserIdMappings started` -// }) - -// mappings = await updateUserIdMappings() - -// logInfo({ -// tags: ['cron', 'user-id'], -// message: `updateUserIdMappings updated ${mappings} user-id mappings` -// }) -// } -// }) - cron.schedule( '0 0 0 * * *', async () => {