Skip to content

Conversation

@amywng
Copy link
Member

@amywng amywng commented Oct 9, 2025

ℹ️ Issue

Closes SSF-64

📝 Description

  • Updated GET /users/volunteers to return a volunteer's assigned pantry IDs
  • Added GET /users/{id}/pantries endpoint to get pantry info about volunteer's assigned pantries
  • Added PATCH /users/{id}/pantries endpoint to assign list of pantries to a volunteer

✔️ Verification

Screenshot 2025-10-06 at 9 28 11 PM Screenshot 2025-10-06 at 9 28 54 PM Screenshot 2025-10-06 at 9 29 04 PM Screenshot 2025-10-06 at 9 33 19 PM Screenshot 2025-10-06 at 9 35 22 PM Screenshot 2025-10-06 at 9 35 38 PM

🏕️ (Optional) Future Work / Notes

Need to write tests.

@PrimaryColumn({ name: 'pantry_id' })
pantryId: number;

@ManyToOne(() => User, { nullable: false, onDelete: 'CASCADE' })

Choose a reason for hiding this comment

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

Note for @sam-schu : I did not know about this onDelete: 'CASCADE' feature. For future work, should look into other entities to see where we may want to add this, as its quite useful.

Copy link

@dburkhart07 dburkhart07 left a comment

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants