Skip to content

Commit

Permalink
Fixed another issue with eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
SebiWrn committed Aug 9, 2024
1 parent 29e0258 commit c82499a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/ts/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export function loadLectureStats(endpoint: string, targetEl: string, streamID: s
const canvas = <HTMLCanvasElement>document.getElementById(targetEl);
const ctx = canvas.getContext("2d");
getAsync(
`/api/course/${(document.getElementById("courseID") as HTMLInputElement).value}/stats?interval=${endpoint}&lecture=${streamID}`,
`/api/course/${
(document.getElementById("courseID") as HTMLInputElement).value
}/stats?interval=${endpoint}&lecture=${streamID}`,
).then((res) => {
if (res.status === StatusCodes.OK) {
res.text().then((value) => {
Expand All @@ -41,9 +43,7 @@ export function initStatsPage() {
const dates = ["numStudents", "vodViews", "liveViews"];
dates.forEach((endpoint) => {
getAsync(
`/api/course/${
(document.getElementById("courseID") as HTMLInputElement).value
}/stats?interval=${endpoint}`,
`/api/course/${(document.getElementById("courseID") as HTMLInputElement).value}/stats?interval=${endpoint}`,
).then((res) => {
if (res.status === StatusCodes.OK) {
res.text().then((value) => {
Expand Down

0 comments on commit c82499a

Please sign in to comment.