Skip to content

Commit

Permalink
Format Backend Files
Browse files Browse the repository at this point in the history
  • Loading branch information
Alder Whiteford authored and Alder Whiteford committed Feb 14, 2024
1 parent 1a5eebf commit 508b882
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions backend/src/controllers/club.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -96,4 +95,4 @@ func (l *ClubController) GetClubEvents(c *fiber.Ctx) error {
// }

// return c.Status(fiber.StatusOK).JSON(events)
// }
// }
1 change: 1 addition & 0 deletions backend/src/models/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const (
)

type RecurringType string

// excluding annually for now bc most clubs have meetings per semester
const (
Daily RecurringType = "daily"
Expand Down
4 changes: 2 additions & 2 deletions backend/src/server/routes/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
events.Delete("/:id/series", eventController.DeleteEventSeries)
}
2 changes: 1 addition & 1 deletion backend/src/services/club.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ func (c *ClubService) GetClubEvents(id string) ([]models.Event, *errors.Error) {

//TODO transactions.GetEventsByClubID
return transactions.GetClubEvents(c.DB, *idAsUUID)
}
}
2 changes: 1 addition & 1 deletion backend/src/transactions/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,4 @@ func DeleteEventSeries(db *gorm.DB, id uuid.UUID) *errors.Error {
}

return nil
}
}

0 comments on commit 508b882

Please sign in to comment.