Fix Saving

This commit is contained in:
eccentric 2023-11-05 02:08:16 +00:00
parent 28b43ce6cd
commit 622335b121

View File

@ -36,10 +36,7 @@ func PostProfileAction(c *fiber.Ctx) error {
return err return err
} }
} }
changes := profile.Diff(before) profile.Diff(before)
aid.Print("Changes: " + strconv.Itoa(len(changes)))
aid.PrintJSON(changes)
revision, _ := strconv.Atoi(c.Query("rvn")) revision, _ := strconv.Atoi(c.Query("rvn"))
if revision == -1 { if revision == -1 {
@ -82,6 +79,7 @@ func PostMarkItemSeenAction(c *fiber.Ctx, person *p.Person, profile *p.Profile)
} }
item.HasSeen = true item.HasSeen = true
item.Save()
} }
return nil return nil
@ -122,5 +120,7 @@ func PostEquipBattleRoyaleCustomizationAction(c *fiber.Ctx, person *p.Person, pr
attr.ValueJSON = aid.JSONStringify(item.ID) attr.ValueJSON = aid.JSONStringify(item.ID)
} }
attr.Save()
return nil return nil
} }