Fix Saving
This commit is contained in:
parent
28b43ce6cd
commit
622335b121
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user