Skip to content

Commit 13a8b60

Browse files
committed
fix: added the schoolname
1 parent 2d2e178 commit 13a8b60

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/routes/User.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ export const GetUserInfo = async (
131131
startingWithFirstName: string;
132132
};
133133
pictureUrl: string;
134-
schoolName: string;
135134
userLT: number;
136-
}
135+
},
136+
schoolName: string
137137
} // je bypass le BaseResponse prcq flm de refaire les types a 4h du mat
138138
const kind = determineAccountKind(userInfo.user.userLT);
139139
const lastName = userInfo.user.name.startingWithFirstName
@@ -184,7 +184,8 @@ export const GetUserInfo = async (
184184
new Date("2000-01-01"),
185185
kind,
186186
deviceId,
187-
userInfo.user.pictureUrl
187+
userInfo.user.pictureUrl,
188+
userInfo.schoolName
188189
);
189190

190191
return client;

src/structures/Smartschool.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export class SmartSchool {
3333
public kind: Kind,
3434
public SMSCMobileID: string,
3535
public pp?: string | null,
36+
public SchoolName?: string,
3637
public kids?: Array<SmartSchool>
3738
){}
3839

0 commit comments

Comments
 (0)