Skip to content

Commit

Permalink
fx(#395) superadmin can be able to login (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpanoathos authored Oct 25, 2024
1 parent cfe810e commit 5d39ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/userResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function logGeoActivity(user: any) {

const profile = await Profile.findOne({ user: user._id })
if (!profile) {
throw new Error('Profile not found for the user')
return;
}

if (geoData.country_code && geoData.city) {
Expand Down

0 comments on commit 5d39ddd

Please sign in to comment.