File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
frontends/api/src/mitxonline/hooks/courses Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import { queryOptions } from "@tanstack/react-query"
22import type {
33 CoursesApiApiV2CoursesListRequest ,
4- PaginatedV2CourseWithCourseRunsList ,
4+ PaginatedCourseWithCourseRunsSerializerV2List ,
55} from "@mitodl/mitxonline-api-axios/v2"
66import { coursesApi } from "../../clients"
77
@@ -18,9 +18,10 @@ const coursesQueries = {
1818 coursesList : ( opts ?: CoursesApiApiV2CoursesListRequest ) =>
1919 queryOptions ( {
2020 queryKey : coursesKeys . coursesList ( opts ) ,
21- queryFn : async ( ) : Promise < PaginatedV2CourseWithCourseRunsList > => {
22- return coursesApi . apiV2CoursesList ( opts ) . then ( ( res ) => res . data )
23- } ,
21+ queryFn :
22+ async ( ) : Promise < PaginatedCourseWithCourseRunsSerializerV2List > => {
23+ return coursesApi . apiV2CoursesList ( opts ) . then ( ( res ) => res . data )
24+ } ,
2425 } ) ,
2526}
2627
You can’t perform that action at this time.
0 commit comments