Skip to content

Commit

Permalink
Update matches.js (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iwhite67 committed Apr 14, 2024
1 parent 61f4df0 commit 64ef526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/matches/matches.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ router.get("/:match_id/stream", async (req, res, next) => {
const matchStreamStatus = async () => {
matches = await db.query(sql, matchID);
matches = matches.map((v) => Object.assign({}, v));
matches = `event: matches\ndata: ${JSON.stringify(matches[0])}\n\n`;
matchString = `event: matches\ndata: ${JSON.stringify(matches[0])}\n\n`;
res.write(matchString);
};

Expand Down

0 comments on commit 64ef526

Please sign in to comment.