Skip to content

Commit

Permalink
based on merging previous condition, remove this redundant one
Browse files Browse the repository at this point in the history
Co-authored-by: Amin Latifi <a.latifi.al@gmail.com>
  • Loading branch information
ae2079 and aminlatifi authored Aug 14, 2024
1 parent e99cf10 commit 0e33d29
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/resolvers/userResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,6 @@ export class UserResolver {
if (!userToVerify) {
throw new Error(i18n.__(translationErrorMessagesKeys.USER_NOT_FOUND));
}
if (userToVerify.id !== currentUserId) {
throw new Error(i18n.__(translationErrorMessagesKeys.UN_AUTHORIZED));
}

const email = userToVerify.email;
if (!email) {
Expand Down

0 comments on commit 0e33d29

Please sign in to comment.