diff --git a/apps/server/src/models/staff/utils.ts b/apps/server/src/models/staff/utils.ts index a6ecc6c..37a75cf 100644 --- a/apps/server/src/models/staff/utils.ts +++ b/apps/server/src/models/staff/utils.ts @@ -9,6 +9,7 @@ export async function setPostRelation(params: { const replyCount = await db.post.count({ where: { type: PostType.POST, + deletedAt: null, receivers: { some: { id: data?.id, @@ -20,6 +21,7 @@ export async function setPostRelation(params: { const receiveCount = await db.post.count({ where: { type: PostType.POST, + deletedAt: null, receivers: { some: { id: data?.id, diff --git a/apps/web/public/vite.svg b/apps/web/public/vite.svg index e7b8dfb..19d27a6 100755 --- a/apps/web/public/vite.svg +++ b/apps/web/public/vite.svg @@ -1 +1,3 @@ - \ No newline at end of file + + + diff --git a/apps/web/src/app/main/letter/list/StaffCard.tsx b/apps/web/src/app/main/letter/list/StaffCard.tsx index 844f811..075d2eb 100644 --- a/apps/web/src/app/main/letter/list/StaffCard.tsx +++ b/apps/web/src/app/main/letter/list/StaffCard.tsx @@ -39,18 +39,21 @@ export function StaffCard({ staff }: StaffCardProps) { {/* Content Container */}
-

+

{staff?.showname || staff?.username || "未知"}

-
- 答复 {staff?.replyCount} / 收信 {staff?.receiveCount} +
+ 答复 {staff?.replyCount} 收信 {staff?.receiveCount}