mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-15 15:31:16 +00:00
fix: UpdateResource
This commit is contained in:
@@ -137,7 +137,7 @@ func UpdateResource(r model.Resource) error {
|
||||
for _, c := range oldCharacters {
|
||||
shouldDelete := true
|
||||
for _, nc := range characters {
|
||||
if c.ID == nc.ID {
|
||||
if c.Equal(&nc) {
|
||||
shouldDelete = false
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user