diff --git a/src/resolvers/Query/checkAuth.ts b/src/resolvers/Query/checkAuth.ts index 59a3dd712c..93daebe0cc 100644 --- a/src/resolvers/Query/checkAuth.ts +++ b/src/resolvers/Query/checkAuth.ts @@ -29,6 +29,9 @@ export const checkAuth: QueryResolvers["checkAuth"] = async ( return { ...currentUser, + image: currentUser.image + ? `${context.apiRootUrl}${currentUser.image}` + : null, organizationsBlockedBy: [], }; }; diff --git a/tests/helpers/userAndOrg.ts b/tests/helpers/userAndOrg.ts index 67b590e777..c7c189c227 100644 --- a/tests/helpers/userAndOrg.ts +++ b/tests/helpers/userAndOrg.ts @@ -17,6 +17,7 @@ export const createTestUser = async (): Promise => { password: `pass${nanoid().toLowerCase()}`, firstName: `firstName${nanoid().toLowerCase()}`, lastName: `lastName${nanoid().toLowerCase()}`, + image: null, appLanguageCode: "en", });