feat: update UomRepository Update method to select all fields during updates

This commit is contained in:
Habib Fatkhul Rohman 2025-11-21 14:04:04 +07:00
parent 69eb45c1fc
commit 1b537183ac
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ func (r *uomRepository) Update(ctx context.Context, tx *gorm.DB, uom entities.MU
if err := tx.WithContext(ctx). if err := tx.WithContext(ctx).
Model(&entities.MUomEntity{}). Model(&entities.MUomEntity{}).
Where("id = ?", uom.ID). Where("id = ?", uom.ID).
Select("*").
Updates(uom).Error; err != nil { Updates(uom).Error; err != nil {
return uom, err return uom, err
} }