diff --git a/apps/web/src/app/main/my-duty/page.tsx b/apps/web/src/app/main/my-duty/page.tsx index 1031d79..91d022b 100755 --- a/apps/web/src/app/main/my-duty/page.tsx +++ b/apps/web/src/app/main/my-duty/page.tsx @@ -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, }, diff --git a/apps/web/src/app/main/my-learning/page.tsx b/apps/web/src/app/main/my-learning/page.tsx index 5f0a7a8..442dd63 100755 --- a/apps/web/src/app/main/my-learning/page.tsx +++ b/apps/web/src/app/main/my-learning/page.tsx @@ -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,