delete unnessasry code

This commit is contained in:
vanilia
2025-12-12 13:56:56 +07:00
parent c64ba0b508
commit 10ae092334
5 changed files with 3 additions and 56 deletions

No files matched your search

@@ -57,7 +57,7 @@ func ReadListData(input e.ReadListDto, event *pl.Event, dbx ...*gorm.DB) ([]e.Ch
Scopes(gh.Paginate(input, &pagination)).
Order("\"CreatedAt\" DESC")
if err := tx.Debug().Find(&data).Error; err != nil {
if err := tx.Find(&data).Error; err != nil {
if errors.Is(err, gorm.ErrRecordNotFound) {
return nil, &meta, nil
}