From 29e0258b77d9a0403befd8bcab45a1d52035c8cd Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 9 Aug 2024 14:19:56 +0200 Subject: [PATCH] Fixed prettier issue --- web/ts/stats.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/ts/stats.ts b/web/ts/stats.ts index 0446b12ce..be92a946f 100644 --- a/web/ts/stats.ts +++ b/web/ts/stats.ts @@ -41,7 +41,9 @@ 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) => { @@ -56,7 +58,9 @@ export function initLectureStatsPage(lectureID: string) { const dates = ["numStudents", "vodViews", "liveViews"]; dates.forEach((endpoint) => { getAsync( - `/api/course/${(document.getElementById("courseID") as HTMLInputElement).value}/stats?interval=${endpoint}&lecture=${lectureID}`, + `/api/course/${ + (document.getElementById("courseID") as HTMLInputElement).value + }/stats?interval=${endpoint}&lecture=${lectureID}`, ).then((res) => { if (res.status === StatusCodes.OK) { res.text().then((value) => {