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

Unregistration of Event #2

Open
suffisme opened this issue Oct 2, 2022 · 0 comments
Open

Unregistration of Event #2

suffisme opened this issue Oct 2, 2022 · 0 comments

Comments

@suffisme
Copy link
Owner

suffisme commented Oct 2, 2022

Following the issue #1 if someone wants to unregister from the event.

The function should allow users to unregister from event.

The request body contains unqiue ID of event and user only.

  • user model should have events_enrolled field which previously contained the event ID in it. Remove that ID from the array
  • events model should have user_enrolled field which is array of object containing data regarding user, remove that too from the list.

NOTE:

  • After unregistering the event, the user will have no record / history regarding the event.
  • User can register again in the event.

Additionals:
Think about how history can be maintained while allowing the user to register again in the same event.

suffisme pushed a commit that referenced this issue Oct 24, 2022
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

No branches or pull requests

1 participant