mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-22 06:15:44 +00:00
Merge branch 'development' into 'codex/dashboard-without-uniformity'
# Conflicts: # internal/modules/dashboards/repositories/dashboard_stats.repository.go # internal/modules/dashboards/services/dashboard.service.go # internal/modules/production/uniformities/services/uniformity.service.go
This commit is contained in:
@@ -416,6 +416,9 @@ func (s *uniformityService) CreateOne(c *fiber.Ctx, req *validation.Create, file
|
||||
if latestWeek > 0 && computedWeek > latestWeek+1 {
|
||||
return nil, fiber.NewError(fiber.StatusBadRequest, "week must be sequential without skipping")
|
||||
}
|
||||
// if latestWeek > 0 && req.Week > latestWeek+1 {
|
||||
// return nil, fiber.NewError(fiber.StatusBadRequest, "week must be sequential without skipping")
|
||||
// }
|
||||
|
||||
if err := s.ensureUniqueUniformity(c.Context(), 0, req.ProjectFlockKandangId, computedWeek); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user