From 622335b1219785c1dff800aeaa5f109b3702fb77 Mon Sep 17 00:00:00 2001 From: eccentric Date: Sun, 5 Nov 2023 02:08:16 +0000 Subject: [PATCH] Fix Saving --- handlers/profile.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/profile.go b/handlers/profile.go index d1f16c9..19d0901 100644 --- a/handlers/profile.go +++ b/handlers/profile.go @@ -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 } \ No newline at end of file