Skip to content

Commit

Permalink
modify api format for capture access
Browse files Browse the repository at this point in the history
  • Loading branch information
ho-yi-shiuan committed Dec 14, 2021
1 parent ccb5370 commit eb3285d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/query/course.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ DELETE FROM KP_Course
WHERE course_id = ?;
`
const getCourseAccessByCouseId = `
SELECT * FROM can_access_capture_files
SELECT client_id FROM can_access_capture_files
WHERE couse_id = ?
`

Expand Down
2 changes: 1 addition & 1 deletion backend/service/course.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const getCourseAccess = async courseId => {
const accessResults = await pool.execute(courseQuery.getCourseAccessByCouseId, [courseId]);
const accessList = accessResults[0];
return {
data: {accessList}
data: {courseId: courseId, accessList: accessList}
};
};

Expand Down

0 comments on commit eb3285d

Please sign in to comment.