Updated UserInfo
This commit is contained in:
@@ -14,7 +14,7 @@ const router: RequestHandler = (req: Request, res, next) => {
|
||||
}
|
||||
try {
|
||||
const res = await fetch(url, {headers: [[DefaultConfig.USERINFO_HEADER, token]]});
|
||||
return await res.json() as Partial<UserInfo>;
|
||||
return await res.json() as UserInfo;
|
||||
} catch (e) {
|
||||
Logger.warn(e);
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user