Fix guild duplication on associates
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user