mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-19 15:05:30 +00:00
fix
This commit is contained in:
@@ -126,7 +126,7 @@ export async function readGameRecord(
|
||||
Key: `${gameFolder}/${gameId}`, // Fixed - needed to include gameFolder
|
||||
});
|
||||
// Parse the response body
|
||||
if (typeof response.Body === "undefined") return null;
|
||||
if (response.Body === undefined) return null;
|
||||
const bodyContents = await response.Body.transformToString();
|
||||
return JSON.parse(bodyContents) as GameRecord;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user