mirror of
https://github.com/foomo/shop.git
synced 2025-10-16 12:35:39 +00:00
makes unique shortID generator compatible to dependency go-shortid
This commit is contained in:
parent
231b48b998
commit
593ee64031
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user