From 59233ee54925b37737060d6bb9d6f28926e57505 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sun, 7 Oct 2018 10:56:29 +0200 Subject: [PATCH] models2: Fixed characters using wrong auto increment --- models/characters/add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/characters/add.go b/models/characters/add.go index 3f261e2..f4c4a44 100644 --- a/models/characters/add.go +++ b/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") } - nextID, err := counter.Next("auto_increment", "models.Character") + nextID, err := counter.Next("auto_increment", "Character") if err != nil { return models.Character{}, err }