[resumes][fix] Fix starred resumes uploader name (#333)

pull/335/head
Su Yin 2 years ago committed by GitHub
parent 384981716d
commit e1ca8e8f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,11 +16,11 @@ export const resumesResumeProtectedTabsRouter = createProtectedRouter()
stars: true, stars: true,
}, },
}, },
}, user: {
}, select: {
user: { name: true,
select: { },
name: true, },
}, },
}, },
}, },
@ -43,7 +43,7 @@ export const resumesResumeProtectedTabsRouter = createProtectedRouter()
role: rs.resume.role, role: rs.resume.role,
title: rs.resume.title, title: rs.resume.title,
url: rs.resume.url, url: rs.resume.url,
user: rs.user.name!, user: rs.resume.user.name!,
}; };
return resume; return resume;
}); });

Loading…
Cancel
Save