Fix guild duplication on associates

This commit is contained in:
2024-10-31 00:00:33 +01:00
parent b22ba8e787
commit 79351c7402

View File

@@ -98,7 +98,7 @@ func PersistNoteData(note NoteData) (Note, []Association, error) {
player.Guild = guild
for _, assoc := range note.Associations {
assocPlayer, err := ps.GetOrCreate(assoc.Player, guild)
assocPlayer, err := ps.GetOrCreate(assoc.Player, Guild{})
if err != nil {
return res, ass, fmt.Errorf("failed getting player for %s: %v", assoc.Player, err)
}