finish sync soapi early-medic

This commit is contained in:
vanilia
2025-12-03 10:19:44 +07:00
parent 11955df8ec
commit 132ce5f5ed
16 changed files with 646 additions and 192 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
}