This commit is contained in:
Li1304553726 2025-02-27 10:23:06 +08:00
commit e9514793e2
2 changed files with 4 additions and 0 deletions

View File

@ -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,
},

View File

@ -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,