We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e7b192 commit 0d00b05Copy full SHA for 0d00b05
1 file changed
apps/meteor/server/cron/userDataDownloads.ts
@@ -5,8 +5,7 @@ import { settings } from '../../app/settings/server';
5
import * as dataExport from '../lib/dataExport';
6
7
export const userDataDownloadsCron = (): void => {
8
- const jobName = 'Generate download files for user data';
9
- const name = 'UserDataDownload';
+ const jobName = 'UserDataDownload';
10
11
const plug = async ({
12
disabled,
@@ -19,7 +18,7 @@ export const userDataDownloadsCron = (): void => {
19
18
return;
20
}
21
22
- await cronJobs.add(name, `*/${processingFrequency} * * * *`, async () => dataExport.processDataDownloads());
+ await cronJobs.add(jobName, `*/${processingFrequency} * * * *`, async () => dataExport.processDataDownloads());
23
24
return async () => {
25
await cronJobs.remove(jobName);
0 commit comments