fix: converter returning sharkeyid wrong

This commit is contained in:
Mar0xy 2023-09-24 00:39:33 +02:00
parent ceffd53d47
commit 9dfc4dbf02
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -26,7 +26,8 @@ export function convertId(in_id: string, id_convert_type: IdConvertType): string
outStr = charFromNum(remainder) + outStr; outStr = charFromNum(remainder) + outStr;
input /= BigInt(36); input /= BigInt(36);
} }
return outStr; let ReversedoutStr = outStr.split("").reduce((acc, char) => char + acc, "");
return ReversedoutStr;
default: default:
throw new Error('Invalid ID conversion type'); throw new Error('Invalid ID conversion type');