mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-07 20:29:13 +02:00
fix:#20 test for mockClock in winter semester
This commit is contained in:
@@ -63,7 +63,8 @@ func AddRoutes(services serviceModel.Service) {
|
||||
Method: http.MethodGet,
|
||||
Path: "/api/fetch/daily/events",
|
||||
Handler: func(c echo.Context) error {
|
||||
course.UpdateCourse(services)
|
||||
clock := time.RealClock{}
|
||||
course.UpdateCourse(services, clock)
|
||||
return c.JSON(http.StatusOK, "Daily events fetched")
|
||||
},
|
||||
Middlewares: []echo.MiddlewareFunc{
|
||||
|
Reference in New Issue
Block a user