compatibility fixes for hashids library

This commit is contained in:
mappu 2018-06-09 18:10:49 +12:00
parent fe4aace777
commit ca8a0d55ba

View File

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