release: v4.1.0

This commit is contained in:
Amruth Pillai
2024-05-05 14:55:06 +02:00
parent 68252c35fc
commit e87b05a93a
282 changed files with 11461 additions and 10713 deletions
@@ -27,7 +27,7 @@ export class ResumeGuard implements CanActivate {
// If the resume is private and the user is authenticated and is the owner of the resume, attach the resume to the request payload.
// Else, if either the user is not authenticated or is not the owner of the resume, throw a 404 error.
if (resume.visibility === "private") {
if (user && user && user.id === resume.userId) {
if (user && user.id === resume.userId) {
request.payload = { resume };
} else {
throw new NotFoundException(ErrorMessage.ResumeNotFound);
@@ -35,7 +35,7 @@ export class ResumeGuard implements CanActivate {
}
return true;
} catch (error) {
} catch {
throw new NotFoundException(ErrorMessage.ResumeNotFound);
}
}