refacto(Resume Controller): reflecting previous change in controller

This commit is contained in:
y8a5y
2025-12-21 14:34:57 +01:00
parent 4c7ed8ea0d
commit 589bd2c162
+5 -1
View File
@@ -99,11 +99,15 @@ export class ResumeController {
@Param("slug") slug: string,
@User("id") userId: string,
) {
const resume = await this.resumeService.findOneByUsernameSlug(username, slug, userId);
const resume = await this.resumeService.findOneByUsernameSlug(username, slug);
// Hide private notes from public resume API responses
set(resume.data as ResumeData, "metadata.notes", undefined);
if (!userId) {
await this.resumeService.incrementViewCountForOne(resume.id);
}
return resume;
}