|
|
|
@ -69,7 +69,7 @@ func New(services Services) *fiber.App {
|
|
|
|
} else if err := ctx.QueryParser(&loc); err == nil {
|
|
|
|
} else if err := ctx.QueryParser(&loc); err == nil {
|
|
|
|
times, err = services.LocationTimesProvider.GetByCoords(ctx.Context(), prayer.Coordinates{
|
|
|
|
times, err = services.LocationTimesProvider.GetByCoords(ctx.Context(), prayer.Coordinates{
|
|
|
|
Latitude: loc.Latitude,
|
|
|
|
Latitude: loc.Latitude,
|
|
|
|
Longitude: loc.Latitude,
|
|
|
|
Longitude: loc.Longitude,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return fmt.Errorf("%w: missing location id or coordinates", fiber.ErrBadRequest)
|
|
|
|
return fmt.Errorf("%w: missing location id or coordinates", fiber.ErrBadRequest)
|
|
|
|
|