Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: return 404 when projectid not found #4581

Merged
merged 3 commits into from
Aug 30, 2023

Conversation

daveleek
Copy link
Contributor

About the changes

Returns Not Found on create and get project api tokens when given a project id that doesn't exist

Discussion points

  • This is an extra lookup per execution of the endpoint

@vercel
Copy link

vercel bot commented Aug 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Aug 29, 2023 6:10am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Aug 29, 2023 6:10am

Copy link
Member

@nunogois nunogois left a comment

Choose a reason for hiding this comment

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

LGTM. Maybe I would rephrase the comment a bit, but that's just me.
await this.projectService.getProject(projectId); // Validates that the project exists

@daveleek daveleek merged commit ff346ad into main Aug 30, 2023
9 checks passed
@daveleek daveleek deleted the fix/project-api-tokens-return-not-found branch August 30, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants