Skip to content

Commit cfba0e0

Browse files
committed
fix docs, remove logs, update error handling
1 parent 4c20d4a commit cfba0e0

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/handler/manager/addTournamentMatches.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,12 @@ export const addTournamentMatches = async (
3939
},
4040
);
4141

42-
console.log(nexusResponse);
43-
4442
if (!nexusResponse.ok) {
4543
const errorMessage = await nexusResponse.text();
4644
console.error("Error getting live event status:", errorMessage);
4745
} else {
4846
const data = await nexusResponse.json();
4947

50-
console.log(data);
51-
5248
for (const match of data.matches) {
5349
if (match.label.startsWith("Practice")) {
5450
const practiceMatchNumber = parseInt(match.label.split(" ")[1]);

src/handler/manager/settings/getPracticeSource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export const getPracticeSource = async (
99
res.status(200).json(req.user.includePracticeMatches);
1010
} catch (error) {
1111
console.error(error);
12-
res.status(500).send(error);
12+
res.status(500).send("Error getting practice source");
1313
}
1414
};

src/routes/manager/settings.routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ registry.registerPath({
3636
schema: z.object({
3737
teamSource: z.array(z.number().int()),
3838
tournamentSource: z.array(z.string()),
39+
includePracticeMatches: z.boolean().optional(),
3940
}),
4041
},
4142
},

0 commit comments

Comments
 (0)