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