feat/things-munaja: device and mcu order

This commit is contained in:
2025-11-20 13:39:51 +07:00
parent 279636682d
commit 7c600dce5f
7 changed files with 85 additions and 3 deletions

No files matched your search

@@ -52,8 +52,8 @@ func ReadListData(input e.ReadListDto, event *pl.Event, dbx ...*gorm.DB) ([]e.De
Scopes(gh.Preload(input.Includes)).
Scopes(gh.Filter(input.FilterDto)).
Count(&count).
Scopes(gh.Paginate(input, &pagination)).
Order("\"CreatedAt\" DESC")
Scopes(gh.Sort(input.Sort)).
Scopes(gh.Paginate(input, &pagination))
if err := tx.Find(&data).Error; err != nil {
if err == gorm.ErrRecordNotFound {