Update shortener.go

This commit is contained in:
kenneth 2023-12-25 17:03:07 +08:00 committed by GitHub
parent f27023c2ac
commit 8ca34713bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,5 +31,5 @@ func GenerateShortLink(originUrl string, userId string) (string, error) {
return "", err
}
return result, nil
return result[:8], nil
}