diff --git a/api/src/utils/get-cache-key.ts b/api/src/utils/get-cache-key.ts index 99087518bd..9056fdeeed 100644 --- a/api/src/utils/get-cache-key.ts +++ b/api/src/utils/get-cache-key.ts @@ -14,5 +14,7 @@ export function getCacheKey(req: Request): string { }; const key = hash(info); - return key; + + // hash() only returns a buffer if the encoding is set to 'buffer' + return key as string; }