diff --git a/src/popo/setting/setting.controller.ts b/src/popo/setting/setting.controller.ts index 1ddc17d..3537d93 100644 --- a/src/popo/setting/setting.controller.ts +++ b/src/popo/setting/setting.controller.ts @@ -70,14 +70,14 @@ export class SettingController { @Get('count-rc-students-list') async countRcStudentList() { - return this.settingService.countRcStduentsList(); + return this.settingService.countRcStudentsList(); } @Get('get-rc-students-status') @Roles(UserType.admin, UserType.association) @UseGuards(JwtAuthGuard, RolesGuard) async getRcStudentStatus() { - return this.settingService.getRcStduentsStatus(); + return this.settingService.getRcStudentsStatus(); } @Get('sync-rc-students-list') diff --git a/src/popo/setting/setting.service.ts b/src/popo/setting/setting.service.ts index ef77be9..bbd0bcb 100644 --- a/src/popo/setting/setting.service.ts +++ b/src/popo/setting/setting.service.ts @@ -21,7 +21,7 @@ export class SettingService { ); } - async countRcStduentsList() { + async countRcStudentsList() { const ret = await this.fileService.queryOnS3( 'popo-rc-students-list.csv', 'SELECT COUNT(*) AS cnt FROM S3Object s', @@ -29,7 +29,7 @@ export class SettingService { return ret[0]['cnt']; } - async getRcStduentsStatus() { + async getRcStudentsStatus() { const rc_list = await this.fileService.queryOnS3( 'popo-rc-students-list.csv', "SELECT name, TRIM(TRAILING '\r' FROM email) AS email FROM S3Object s",