Skip to content

Commit

Permalink
fix: cast cache string response to JSON object
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jan 31, 2024
1 parent 984b501 commit 4e4a03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function get(key: string) {
return false;
}

return await response.Body.transformToString();
return JSON.parse(await response.Body.transformToString());
} catch (e: any) {
if (e['$metadata']?.httpStatusCode !== 404) {
capture(e, { key, path: path(key) });
Expand Down

0 comments on commit 4e4a03b

Please sign in to comment.