mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
feat(BE-281): fixing duplicate
This commit is contained in:
@@ -292,11 +292,11 @@ func isUniformityNewer(a, b entity.ProjectFlockKandangUniformity) bool {
|
|||||||
}
|
}
|
||||||
if !aDate.IsZero() || !bDate.IsZero() {
|
if !aDate.IsZero() || !bDate.IsZero() {
|
||||||
if aDate.Equal(bDate) {
|
if aDate.Equal(bDate) {
|
||||||
return a.CreatedAt.After(b.CreatedAt)
|
return a.Id > b.Id
|
||||||
}
|
}
|
||||||
return aDate.After(bDate)
|
return aDate.After(bDate)
|
||||||
}
|
}
|
||||||
return a.CreatedAt.After(b.CreatedAt)
|
return a.Id > b.Id
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s uniformityService) MapDocuments(c *fiber.Ctx, items []entity.ProjectFlockKandangUniformity) (map[uint]string, error) {
|
func (s uniformityService) MapDocuments(c *fiber.Ctx, items []entity.ProjectFlockKandangUniformity) (map[uint]string, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user