compatibility fixes for hashids library
This commit is contained in:
parent
fe4aace777
commit
ca8a0d55ba
@ -47,7 +47,7 @@ func idToString(v uint64) string {
|
|||||||
hd := hashids.NewData()
|
hd := hashids.NewData()
|
||||||
hd.Salt = hashIdSalt
|
hd.Salt = hashIdSalt
|
||||||
hd.MinLength = hashIdMinLength
|
hd.MinLength = hashIdMinLength
|
||||||
h, _ := hashids.NewWithData(hd)
|
h := hashids.NewWithData(hd)
|
||||||
s, _ := h.EncodeInt64([]int64{int64(v)})
|
s, _ := h.EncodeInt64([]int64{int64(v)})
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user