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