Skip to content

Commit

Permalink
Rename variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Oct 19, 2023
1 parent 9ea0815 commit 9dcb2a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -655,15 +655,15 @@ app.put("/options/:studentID", async (req, res) => {
});

app.get("/dashboard-group-classes/:code", async (req, res) => {
const classIDs = await getDashboardGroupClasses(req.params.code);
if (classIDs === null) {
const classes= await getDashboardGroupClasses(req.params.code);
if (classes === null) {
res.statusCode = 404;
res.json({
error: `Could not find a dashboard group for code ${req.params.code}`
});
} else {
res.json({
classes: classIDs
classes
});
}
});

0 comments on commit 9dcb2a2

Please sign in to comment.