makes unique shortID generator compatible to dependency go-shortid

This commit is contained in:
Frederik Löffert 2018-03-27 22:26:34 +02:00
parent 231b48b998
commit 593ee64031

View File

@ -38,7 +38,7 @@ func GetNewIDSnowFlake() string {
func GetNewIDShortID() string {
var seed uint64 = 3214
if generator == nil {
newGenerator, err := shortid.New(1, shortid.DefaultABC, seed)
newGenerator, err := shortid.New(1, shortid.DEFAULT_ABC, seed)
generator = newGenerator
if err != nil {
// The Shop can no longer work without this, therfore panic.