diff --git a/backend/src/controllers/club.go b/backend/src/controllers/club.go index 1da724719..07ab6b805 100644 --- a/backend/src/controllers/club.go +++ b/backend/src/controllers/club.go @@ -76,7 +76,6 @@ func (cl *ClubController) DeleteClub(c *fiber.Ctx) error { return c.SendStatus(fiber.StatusNoContent) } - func (l *ClubController) GetClubEvents(c *fiber.Ctx) error { //TODO add filters by date if events, err := l.clubService.GetClubEvents(c.Params("id")); err != nil { @@ -96,4 +95,4 @@ func (l *ClubController) GetClubEvents(c *fiber.Ctx) error { // } // return c.Status(fiber.StatusOK).JSON(events) -// } \ No newline at end of file +// } diff --git a/backend/src/models/event.go b/backend/src/models/event.go index 5e105c2a5..02a99bd04 100644 --- a/backend/src/models/event.go +++ b/backend/src/models/event.go @@ -13,6 +13,7 @@ const ( ) type RecurringType string + // excluding annually for now bc most clubs have meetings per semester const ( Daily RecurringType = "daily" diff --git a/backend/src/server/routes/event.go b/backend/src/server/routes/event.go index 1b49172b8..1c853f34d 100644 --- a/backend/src/server/routes/event.go +++ b/backend/src/server/routes/event.go @@ -17,5 +17,5 @@ func Event(router fiber.Router, eventService services.EventServiceInterface) { events.Post("/", eventController.CreateEvent) events.Patch("/:id", eventController.UpdateEvent) events.Delete("/:id", eventController.DeleteEvent) - events.Delete("/:id/series", eventController.DeleteEventSeries) -} \ No newline at end of file + events.Delete("/:id/series", eventController.DeleteEventSeries) +} diff --git a/backend/src/services/club.go b/backend/src/services/club.go index aa551919e..28078fa2a 100644 --- a/backend/src/services/club.go +++ b/backend/src/services/club.go @@ -102,4 +102,4 @@ func (c *ClubService) GetClubEvents(id string) ([]models.Event, *errors.Error) { //TODO transactions.GetEventsByClubID return transactions.GetClubEvents(c.DB, *idAsUUID) -} \ No newline at end of file +} diff --git a/backend/src/transactions/event.go b/backend/src/transactions/event.go index 5733883d0..6fac58a87 100644 --- a/backend/src/transactions/event.go +++ b/backend/src/transactions/event.go @@ -160,4 +160,4 @@ func DeleteEventSeries(db *gorm.DB, id uuid.UUID) *errors.Error { } return nil -} \ No newline at end of file +}