mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-15 07:17:00 +10:00
refacto(Resume Controller): reflecting previous change in controller
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user