File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ import { settings } from '../../app/settings/server';
55import * as dataExport from '../lib/dataExport' ;
66
77export 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 ) ;
You can’t perform that action at this time.
0 commit comments