Skip to content

Commit 74c5895

Browse files
fix
1 parent bf7d461 commit 74c5895

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ API keys.
1313

1414
## How to build
1515
- Run `npm install`
16-
- Run `npm build`
16+
- Run `npm run build`
1717

1818

1919
## Authentication

src/lib/course.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ export async function deleteCourse(data: DeleteCourseRequest): Promise<void> {
645645
const api = bent(getApiV1Url(), 'DELETE', 'json', 200)
646646
try {
647647
const paramString = data.removeOutdatedStudents ? `?removeOutdatedStudents=${data.removeOutdatedStudents}` : ''
648-
await api(`/courses${paramString}`, data, getBearer())
648+
await api(`/courses/${data.id}${paramString}`, data, getBearer())
649649
return
650650
} catch (error: any) {
651651
if (error.json) {

0 commit comments

Comments
 (0)