mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
Fix invalid resource updating.
This commit is contained in:
@@ -97,6 +97,7 @@ func UpdateResource(r model.Resource) error {
|
||||
tags := r.Tags
|
||||
r.Images = nil
|
||||
r.Tags = nil
|
||||
r.Files = nil
|
||||
if err := db.Save(&r).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user