From e1ca8e8f78278532870b3a10297eab35bd0ab3ef Mon Sep 17 00:00:00 2001 From: Su Yin <53945359+tnsyn@users.noreply.github.com> Date: Sun, 9 Oct 2022 11:35:01 +0800 Subject: [PATCH] [resumes][fix] Fix starred resumes uploader name (#333) --- .../router/resumes-resume-protected-tabs-router.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/portal/src/server/router/resumes-resume-protected-tabs-router.ts b/apps/portal/src/server/router/resumes-resume-protected-tabs-router.ts index dd6535bb..0f5ebaa9 100644 --- a/apps/portal/src/server/router/resumes-resume-protected-tabs-router.ts +++ b/apps/portal/src/server/router/resumes-resume-protected-tabs-router.ts @@ -16,11 +16,11 @@ export const resumesResumeProtectedTabsRouter = createProtectedRouter() stars: true, }, }, - }, - }, - user: { - select: { - name: true, + user: { + select: { + name: true, + }, + }, }, }, }, @@ -43,7 +43,7 @@ export const resumesResumeProtectedTabsRouter = createProtectedRouter() role: rs.resume.role, title: rs.resume.title, url: rs.resume.url, - user: rs.user.name!, + user: rs.resume.user.name!, }; return resume; });