Merge branch 'main' of http://113.45.157.195:3003/insiinc/re-mooc
This commit is contained in:
commit
e9514793e2
|
@ -2,6 +2,7 @@ import PostList from "@web/src/components/models/course/list/PostList";
|
|||
import { useAuth } from "@web/src/providers/auth-provider";
|
||||
import { useMainContext } from "../layout/MainProvider";
|
||||
import CourseCard from "../courses/components/CourseCard";
|
||||
import { PostType } from "@nice/common";
|
||||
|
||||
export default function MyDutyPage() {
|
||||
const { user } = useAuth();
|
||||
|
@ -16,6 +17,7 @@ export default function MyDutyPage() {
|
|||
params={{
|
||||
pageSize: 12,
|
||||
where: {
|
||||
type: PostType.COURSE,
|
||||
authorId: user.id,
|
||||
...searchCondition,
|
||||
},
|
||||
|
|
|
@ -2,6 +2,7 @@ import PostList from "@web/src/components/models/course/list/PostList";
|
|||
import { useAuth } from "@web/src/providers/auth-provider";
|
||||
import { useMainContext } from "../layout/MainProvider";
|
||||
import CourseCard from "../courses/components/CourseCard";
|
||||
import { PostType } from "@nice/common";
|
||||
|
||||
export default function MyLearningPage() {
|
||||
const { user } = useAuth();
|
||||
|
@ -16,6 +17,7 @@ export default function MyLearningPage() {
|
|||
params={{
|
||||
pageSize: 12,
|
||||
where: {
|
||||
type: PostType.COURSE,
|
||||
students: {
|
||||
some: {
|
||||
id: user?.id,
|
||||
|
|
Loading…
Reference in New Issue