|
@ -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 |
|
|
} |
|
|
} |
|
|