Browse Source

models2: Fixed characters using wrong auto increment

1.0
Gisle Aune 6 years ago
parent
commit
59233ee549
  1. 2
      models/characters/add.go

2
models/characters/add.go

@ -25,7 +25,7 @@ func Add(nick, name, shortName, author, description string) (models.Character, e
return models.Character{}, errors.New("Nick is occupied") return models.Character{}, errors.New("Nick is occupied")
} }
nextID, err := counter.Next("auto_increment", "models.Character")
nextID, err := counter.Next("auto_increment", "Character")
if err != nil { if err != nil {
return models.Character{}, err return models.Character{}, err
} }

Loading…
Cancel
Save