fix asset owner can't change.

This commit is contained in:
Whwlsfb
2021-04-21 23:17:54 +08:00
committed by dushixiang
parent f61a2ba553
commit 900216f013

View File

@ -235,6 +235,7 @@ func (r AssetRepository) FindByIdAndDecrypt(id string) (o model.Asset, err error
} }
func (r AssetRepository) UpdateById(o *model.Asset, id string) error { func (r AssetRepository) UpdateById(o *model.Asset, id string) error {
o.ID = id
return r.DB.Updates(o).Error return r.DB.Updates(o).Error
} }