Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions apps/meteor/server/cron/userDataDownloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { settings } from '../../app/settings/server';
import * as dataExport from '../lib/dataExport';

export const userDataDownloadsCron = (): void => {
const jobName = 'Generate download files for user data';
const name = 'UserDataDownload';
const jobName = 'UserDataDownload';

const plug = async ({
disabled,
Expand All @@ -19,7 +18,7 @@ export const userDataDownloadsCron = (): void => {
return;
}

await cronJobs.add(name, `*/${processingFrequency} * * * *`, async () => dataExport.processDataDownloads());
await cronJobs.add(jobName, `*/${processingFrequency} * * * *`, async () => dataExport.processDataDownloads());

return async () => {
await cronJobs.remove(jobName);
Expand Down
Loading