adjustment detail installation

This commit is contained in:
vanilia
2025-10-24 15:39:14 +07:00
parent 8e50842f8e
commit 69f80b45ef
11 changed files with 40 additions and 63 deletions

No files matched your search

+3 -1
View File
@@ -81,7 +81,9 @@ func ReadDetailData(input e.ReadDetailDto, event *pl.Event, dbx ...*gorm.DB) (*e
tx = dg.I
}
if err := tx.First(&data, input.Id).Error; err != nil {
if err := tx.
Scopes(gh.Preload(input.Includes)).
First(&data, input.Id).Error; err != nil {
if processedErr := pu.HandleReadError(err, event, source, input.Id, data); processedErr != nil {
return nil, processedErr
}