From a31752a9e49ad9d15f8a3b4e7e8b54a25eadca38 Mon Sep 17 00:00:00 2001 From: Andrew J Xu Date: Tue, 13 Feb 2024 13:08:35 -0500 Subject: [PATCH] fix --- .github/workflows/cd-snapshot.yml | 2 +- src/components/BottomBar/BottomBarState.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd-snapshot.yml b/.github/workflows/cd-snapshot.yml index e73ec0937..0b6f365a1 100644 --- a/.github/workflows/cd-snapshot.yml +++ b/.github/workflows/cd-snapshot.yml @@ -9,7 +9,7 @@ jobs: - name: Set up Node uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '20' cache: 'npm' - name: NPM Install run: npm install diff --git a/src/components/BottomBar/BottomBarState.ts b/src/components/BottomBar/BottomBarState.ts index fcb2f1130..b67cbf0ea 100644 --- a/src/components/BottomBar/BottomBarState.ts +++ b/src/components/BottomBar/BottomBarState.ts @@ -66,7 +66,7 @@ const getReviews = ( classDifficulty: number; classWorkload: number; }> => - fetch('https://www.cureviews.org/v2/getCourseByInfo', { + fetch('https://www.cureviews.org/api/getCourseByInfo', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ subject: subject.toLowerCase(), number }),