Skip to content

Commit

Permalink
Update src/oidc/configuration.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Wonwoo Choi <[email protected]>
  • Loading branch information
whnbaek and tirr-c authored Aug 14, 2023
1 parent d60a47e commit 1f6458d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oidc/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function createOIDCConfig(model: Model, oidcConfig: Config['oidc'
// ~84: YYXX-NNNN, 85 ~ 99: YYXXX-NNN, 00 ~: YYYY-NNNNN
// get student id, hard-coded by ataching '19' and sorting
const sidResult = await model.users.getStudentNumbersByUserIdx(tr, Number(id));
if (sidResult.length == 0) {
if (sidResult.length === 0) {
throw new Error('no student id');
}
if (sidResult.length > 1) {
Expand Down

0 comments on commit 1f6458d

Please sign in to comment.