Skip to content

Commit

Permalink
Fix client/7535 - Handle agentInfo.userId == null (#4886)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanos authored Jan 28, 2025
1 parent c6045c9 commit 910dc15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/api/me/me.resolver.fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export class MeResolverFields {
LogContext.RESOLVER_FIELD
);
}
// When the user is just registered, the agentInfo.userID is still null
if (email && !agentInfo.userID) {
return null;
}

return this.userService.getUserOrFail(agentInfo.userID);
}
Expand Down

0 comments on commit 910dc15

Please sign in to comment.