From 2ae96453d1f35e47b686d7a175b50aeeda91de55 Mon Sep 17 00:00:00 2001 From: Adrian Kunz Date: Fri, 27 Oct 2023 20:58:14 +0200 Subject: [PATCH] feat(frontend): Find my courses as member --- frontend/src/app/assignment/services/course.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/assignment/services/course.service.ts b/frontend/src/app/assignment/services/course.service.ts index 3f8631494..5e0e458b0 100644 --- a/frontend/src/app/assignment/services/course.service.ts +++ b/frontend/src/app/assignment/services/course.service.ts @@ -73,7 +73,12 @@ export class CourseService { getOwn(): Observable { return this.userService.getCurrent().pipe( - switchMap(user => user ? this.http.get(`${environment.assignmentsApiUrl}/courses`, {params: {createdBy: user.id!}}) : of([])), + switchMap(user => user ? this.http.get(`${environment.assignmentsApiUrl}/courses`, { + params: { + createdBy: user.id!, + members: [user.id!], + }, + }) : of([])), ); } }