Skip to content

Commit 0d00b05

Browse files
authored
chore(cron): Align cron job identifier in userDataDownloads (#39261)
1 parent 7e7b192 commit 0d00b05

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/meteor/server/cron/userDataDownloads.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { settings } from '../../app/settings/server';
55
import * as dataExport from '../lib/dataExport';
66

77
export const userDataDownloadsCron = (): void => {
8-
const jobName = 'Generate download files for user data';
9-
const name = 'UserDataDownload';
8+
const jobName = 'UserDataDownload';
109

1110
const plug = async ({
1211
disabled,
@@ -19,7 +18,7 @@ export const userDataDownloadsCron = (): void => {
1918
return;
2019
}
2120

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

2423
return async () => {
2524
await cronJobs.remove(jobName);

0 commit comments

Comments
 (0)