fix: fixed course detail api params (#226)

* fix: fixed course detail api params

* test: fixed tests
This commit is contained in:
AsadAzam
2021-12-23 11:24:01 +05:00
committed by GitHub
parent a3e88a6c09
commit 3c6e50bfbc
3 changed files with 5 additions and 5 deletions

View File

@@ -9,9 +9,9 @@ function normalizeCourseDetail(data) {
};
}
export async function getCourseDetail(courseId) {
export async function getCourseDetail(courseId, username) {
const { data } = await getAuthenticatedHttpClient()
.get(`${getConfig().LMS_BASE_URL}/api/courses/v1/courses/${courseId}`);
.get(`${getConfig().LMS_BASE_URL}/api/courses/v1/courses/${courseId}?username=${username}`);
return normalizeCourseDetail(data);
}