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 1
1
import { queryOptions } from "@tanstack/react-query"
2
2
import type {
3
3
CoursesApiApiV2CoursesListRequest ,
4
- PaginatedV2CourseWithCourseRunsList ,
4
+ PaginatedCourseWithCourseRunsSerializerV2List ,
5
5
} from "@mitodl/mitxonline-api-axios/v2"
6
6
import { coursesApi } from "../../clients"
7
7
@@ -18,9 +18,10 @@ const coursesQueries = {
18
18
coursesList : ( opts ?: CoursesApiApiV2CoursesListRequest ) =>
19
19
queryOptions ( {
20
20
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
+ } ,
24
25
} ) ,
25
26
}
26
27
You can’t perform that action at this time.
0 commit comments