Skip to content

Commit

Permalink
fix: bug resume key error when updating profile with only_edit_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdellahitech committed Dec 3, 2024
1 parent 3b72be1 commit cfcea9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hrflow_connectors/v2/core/hrflow/aisles/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ def update(
else profile
)
profile_to_edit = {**current_profile, **edit}
del profile_to_edit[
"resume"
] # remove resume file from profile to edit because it's not JSON serializable
profile_to_edit.pop(
"resume", None
) # remove resume file from profile to edit because it's not JSON serializable

if profile.get("resume") and profile["resume"].get("raw") is not None:
if not current_profile.get("attachments"):
Expand Down

0 comments on commit cfcea9d

Please sign in to comment.