From 13c5791a1cd7bce59538a3257455c7704d936ffe Mon Sep 17 00:00:00 2001
From: Ranindya Paramitha <23520019@std.stei.itb.ac.id>
Date: Fri, 9 Apr 2021 14:31:27 +0000
Subject: [PATCH] Hotfix get course class meeting lecturer

---
 backend/src/util/db/course-class-meeting.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/src/util/db/course-class-meeting.js b/backend/src/util/db/course-class-meeting.js
index 7b324dc4..9a25fabe 100644
--- a/backend/src/util/db/course-class-meeting.js
+++ b/backend/src/util/db/course-class-meeting.js
@@ -47,7 +47,7 @@ const getCourseClassMeetingByStudentId = async (opts = {}) => {
 };
 
 const getCourseClassMeetingByLecturerId = async (opts = {}) => {
-  const courseClasses = await getCourseClass({ body: opts.where }, true);
+  const courseClasses = await getCourseClass({ body: {opts} }, true);
 
   const courseClassIds = courseClasses.map((courseClass) => courseClass.id);
 
-- 
GitLab