You've already forked RekomenciBackend
feat(): prediction pipeline
This commit is contained in:
@@ -16,7 +16,7 @@ from template_project.application.resume.entity import (
|
||||
ResumeId,
|
||||
ResumeProject,
|
||||
)
|
||||
from template_project.application.resume.errors import ResumeDoesBelongUserError
|
||||
from template_project.application.resume.errors import ResumeDoesBelongUserError, ResumeNotFoundError
|
||||
|
||||
|
||||
@to_data_structure
|
||||
@@ -96,7 +96,9 @@ class EditResumeInteractor:
|
||||
projects: list[ProjectInput] | None = None,
|
||||
) -> EditResumeResponse:
|
||||
user = await self.identity_provider.get_current_user()
|
||||
old_resume = await self.resume_data_gateway.load(resume_id)
|
||||
old_resume = await self.resume_data_gateway.load_by_resume_id(resume_id)
|
||||
if old_resume is None:
|
||||
raise ResumeNotFoundError(resume_id=resume_id)
|
||||
if old_resume.user_id != user.id:
|
||||
raise ResumeDoesBelongUserError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user