Skip to content

Commit 3eb305d

Browse files
Update workflow type in weekly report schedule configuration
- Changed the workflowType in the setupWeeklyReportSchedule function from a direct import to a string reference for 'weeklyFinancialReportsWorkflow'. - This adjustment improves clarity and consistency in the schedule setup process. These changes enhance the maintainability of the scheduling configuration.
1 parent 4a8ecda commit 3eb305d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

workers/main/src/configs/schedules.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Client } from '@temporalio/client';
22

33
import { logger } from '../logger';
4-
import { weeklyFinancialReportsWorkflow } from '../workflows';
54
import { workerConfig } from './worker';
65

76
const SCHEDULE_ID = 'weekly-financial-report-schedule';
@@ -39,7 +38,7 @@ export async function setupWeeklyReportSchedule(client: Client): Promise<void> {
3938
},
4039
action: {
4140
type: 'startWorkflow',
42-
workflowType: weeklyFinancialReportsWorkflow,
41+
workflowType: 'weeklyFinancialReportsWorkflow',
4342
taskQueue: workerConfig.taskQueue,
4443
workflowId: `weekly-financial-report-scheduled`,
4544
},

0 commit comments

Comments
 (0)