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
1 changed files with 2 additions and 1 deletions

View File

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