VikeLabs/Collabify

[BACKEND] - Get all the events from a group (getEventsFromGroup)

Closed this issue · 0 comments

Screenshot 2022-10-22 125507
^ Follow how we error handle from here

Task:

  • In the /db/events.js file add a function getEventsFromGroup with the parameter groupName
  • From the Group model get the ID's from the events array
  • From the ID's get all the events models and create an array of all of them to be returned