Skip to content

Commit

Permalink
fix missing matchid
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 2, 2023
1 parent 18373f5 commit 38d4f8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion store/buildMatch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function getMatch(matchId) {
);
let match = null;
if (isParsed) {
match = (await getArchivedMatch(matchId)) || (await getMatchData());
match = (await getArchivedMatch(matchId)) || (await getMatchData(matchId));
} else {
match = (await getMatchData(matchId)) || (await getArchivedMatch(matchId));
}
Expand Down
2 changes: 1 addition & 1 deletion store/queries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ export async function getMatchData(matchId) {
}
);
const deserializedResult = result.rows.map((m) => deserialize(m));
return Promise.resolve(deserializedResult[0]);
return deserializedResult[0];
}
export async function getPlayerMatchData(matchId) {
const result = await cassandra.execute(
Expand Down

0 comments on commit 38d4f8a

Please sign in to comment.