Skip to content

[Backend] Delete All Corresponding Relations when Deleting User #110

@wkim10

Description

@wkim10

Description

Currently, when we try to delete a user it throws an error because we have added several new models that have relations with the User model. The delete route only deletes the user's corresponding VolunteerDetails document, but we also want it to delete every other document it is connected to (such as TimeSlots and VolunteerSessions).

Testing

Make sure that everything related to the User model is deleted!

Metadata

Metadata

Assignees

Labels

backendbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions