Skip to content

Commit

Permalink
fix: check not to lowerCase if email can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
mirarifhasan committed May 8, 2024
1 parent 5fc2d13 commit 497201d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/hoppscotch-backend/src/admin/admin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ export class AdminService {
) {
return this.shortcodeService.fetchAllShortcodes(
{ cursor: cursorID, take },
userEmail.toLowerCase(),
userEmail,
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/hoppscotch-backend/src/admin/infra.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class InfraResolver {
return await this.adminService.fetchAllShortcodes(
args.cursor,
args.take,
userEmail.toLowerCase(),
userEmail ? userEmail.toLowerCase() : null,
);
}

Expand Down

0 comments on commit 497201d

Please sign in to comment.