-
Notifications
You must be signed in to change notification settings - Fork 0
[SSF 216] - Role and ownership gated requests controller #178
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,7 +50,7 @@ export class PantriesService { | |
|
|
||
| const pantry = await this.repo.findOne({ | ||
| where: { pantryId }, | ||
| relations: ['pantryUser'], | ||
| relations: ['pantryUser', 'volunteers'], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this affect the api return shape / should we account for it?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it shouldnt. the frontend Pantry interface takes in volunteers optionally, and the Pantry entity has volunteers already as well. It does expose this on all endpoints that receive a Pantry, but none of them are using the volunteers attribute, only the resolver is so its not a huge deal. |
||
| }); | ||
|
|
||
| if (!pantry) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm struggling with testing these endpoints since I keep getting
Unauthorized 401errors if I try to access any endpoint except/api. What's the best way to troubleshoot this?Edit: Figured it out, and endpoints look good