feat: update UomRepository Update method to select all fields during updates
This commit is contained in:
parent
69eb45c1fc
commit
1b537183ac
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue