fix asset owner can't change.

This commit is contained in:
Whwlsfb authored and dushixiang committed 2021-04-22 00:00:40 +08:00
1 parent f61a2ba553
commit 900216f013
1 file changed
+1
+1
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 {
o.ID = id
return r.DB.Updates(o).Error
}