File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,7 @@ const authResolvers = {
5757 _parent : undefined ,
5858 { accessToken } : { accessToken : string } ,
5959 ) : Promise < boolean > => {
60- const isAuthorized = await authService . isAuthorizedAdmin (
61- accessToken ,
62- ) ;
60+ const isAuthorized = await authService . isAuthorizedAdmin ( accessToken ) ;
6361 return isAuthorized ;
6462 } ,
6563 } ,
Original file line number Diff line number Diff line change @@ -278,7 +278,9 @@ class AuthService implements IAuthService {
278278 try {
279279 const decodedIdToken : firebaseAdmin . auth . DecodedIdToken =
280280 await firebaseAdmin . auth ( ) . verifyIdToken ( accessToken , true ) ;
281- const userId = await this . userService . getUserIdByAuthId ( decodedIdToken . uid ) ;
281+ const userId = await this . userService . getUserIdByAuthId (
282+ decodedIdToken . uid ,
283+ ) ;
282284 const adminEntry = await Admin . findOne ( { where : { userId } } ) ;
283285 return ! ! adminEntry ;
284286 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments