Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Jun 30, 2024
1 parent 27dade6 commit 5e5c0d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/popo/setting/setting.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions src/popo/setting/setting.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ 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',
);
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",
Expand Down

0 comments on commit 5e5c0d3

Please sign in to comment.