diff --git a/api/src/utils/get-simple-hash.ts b/api/src/utils/get-simple-hash.ts index 29c172ee91..0e90ead32f 100644 --- a/api/src/utils/get-simple-hash.ts +++ b/api/src/utils/get-simple-hash.ts @@ -9,5 +9,5 @@ export function simpleHash(str: string) { hash = 31 * hash + str.charCodeAt(i++); } - return hash.toString(16); + return Math.abs(hash).toString(16); }