Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Conversation

@NathanFlurry
Copy link
Member

feat(users): optionally return user in authenticate_token

Copy link
Member Author

NathanFlurry commented Jun 20, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @NathanFlurry and the rest of your teammates on Graphite Graphite

@NathanFlurry NathanFlurry requested a review from MasterPtato June 20, 2024 19:27
@NathanFlurry NathanFlurry force-pushed the 06-20-chore_rename_scripts_get_-_fetch branch from c5cc9b1 to 85fe39f Compare June 20, 2024 19:30
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

  • Renamed script functions and files for consistency (e.g., get to fetch, createUser to create)
  • Updated authenticateUser to authenticateToken across multiple modules
  • Added optional fetchUser parameter in authenticate_token.ts
  • Ensured consistency in test files by updating function names
  • No functional changes, only renaming for clarity and maintainability

26 file(s) reviewed, 1 comment(s)

Comment on lines +28 to +31
if (req.fetchUser) {
user = await ctx.db.user.findFirstOrThrow({
where: { id: userId },
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider handling potential errors when fetching user details, such as user not found.

@NathanFlurry NathanFlurry force-pushed the 06-20-chore_rename_scripts_get_-_fetch branch from 85fe39f to d02bea8 Compare June 20, 2024 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants