Skip to content

Commit

Permalink
Make response JSON keys for class measurements be consistent with oth…
Browse files Browse the repository at this point in the history
…er endpoints.
  • Loading branch information
Carifio24 committed Jun 20, 2024
1 parent b7859e3 commit 019dc9a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/stories/hubbles_law/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ router.get(["/class-measurements/:studentID/:classID", "/stage-3-data/:studentID

const measurements = await getClassMeasurements(studentID, classID, lastChecked);
res.status(200).json({
studentID,
classID,
measurements
student_id: studentID,
class_id: classID,
measurements,
});
});

Expand All @@ -304,9 +304,9 @@ router.get(["/class-measurements/:studentID", "stage-3-measurements/:studentID"]

const measurements = await getClassMeasurements(studentID, null);
res.status(200).json({
studentID,
student_id: studentID,
class_id: null,
measurements,
classID: null
});
});

Expand Down

0 comments on commit 019dc9a

Please sign in to comment.