Skip to content

Commit

Permalink
fix(core): campus typo
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb committed Jun 5, 2021
1 parent 6df91d6 commit 0282465
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function getSchoolInfos(
}
schoolInfos[abbreviation] = {
defaultAddr,
campuseAuthStartEndpoint: `${origin}/iap/login?service=${
campusAuthStartEndpoint: `${origin}/iap/login?service=${
encodeURIComponent(
`${origin}/portal/login`,
)
Expand Down
2 changes: 1 addition & 1 deletion core/src/crawler/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default async function login(

let res: Response
// ensure redirecting to the right auth service, fallback to campuseAuthStartEndpoint
res = await fetch.get(startPointUrl || school.campuseAuthStartEndpoint)
res = await fetch.get(startPointUrl || school.campusAuthStartEndpoint)

if (authUrl) {
// manually redirect
Expand Down
2 changes: 1 addition & 1 deletion core/src/types/conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type SchoolConfOpts = {
// idsUrl
campusphere: string
// `${compusphere.origin}/iap/login?service=${encodeURIComponent(`${campusphere}/portal/login`)}`
campuseAuthStartEndpoint: string
campusAuthStartEndpoint: string
chineseName: string
defaultAddr: string
isIap: boolean
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"internal",
"plugins/*"
],
"version": "1.0.0",
"version": "0.0.0",
"command": {
"version": {
"conventionalCommits": true,
Expand Down

0 comments on commit 0282465

Please sign in to comment.