Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

refacto(Resume Controller): reflecting previous change in controller

y8a5y589bd2c16205
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;
}