diff --git a/apps/server/src/resume/resume.controller.ts b/apps/server/src/resume/resume.controller.ts index 29d93266f..ab717465d 100644 --- a/apps/server/src/resume/resume.controller.ts +++ b/apps/server/src/resume/resume.controller.ts @@ -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; }