forked from wangziqi/gongxue-base
fix permissions and teacher attendance workflows
This commit is contained in:
@@ -67,10 +67,12 @@ export class SyncController {
|
||||
async syncSchedule(
|
||||
@Query('dateFrom') dateFrom?: string,
|
||||
@Query('days') days?: string,
|
||||
@Query('attendanceMachineOnly') attendanceMachineOnly?: string,
|
||||
) {
|
||||
const result = await this.syncService.syncScheduleToDingTalk(
|
||||
dateFrom,
|
||||
days ? parseInt(days, 10) : 30,
|
||||
attendanceMachineOnly === 'true',
|
||||
);
|
||||
return { success: true, data: result };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user