tutorcruncher / hermes

1 stars 0 forks source link

ValidationError: 2 validation errors for Organisation #153

Closed sentry-io[bot] closed 7 months ago

sentry-io[bot] commented 9 months ago

Sentry Issue: TC-HERMES-2Q

ValidationError: 2 validation errors for Organisation
bdr_person_id
  Input should be a valid integer [type=int_type, input_value=<tortoise.fields.relation...bject at 0x7fde84870900>, input_type=_NoneAwaitable]
    For further information visit https://errors.pydantic.dev/2.5/v/int_type
sales_person_id
  Input should be a valid integer [type=int_type, input_value=<tortoise.fields.relation...bject at 0x7fde84870900>, input_type=_NoneAwaitable]
    For further information visit https://errors.pydantic.dev/2.5/v/int_type
(14 additional frame(s) were not displayed)
...
  File "app/pipedrive/tasks.py", line 21, in pd_post_process_sales_call
    await get_and_create_or_update_organisation(company)
  File "app/pipedrive/api.py", line 107, in get_and_create_or_update_organisation
    hermes_org = await Organisation.from_company(company)
  File "app/pipedrive/_schema.py", line 70, in from_company
    return cls(**final_kwargs)
PrenSJ2 commented 9 months ago

I beleive this is happening due to old links where gabe gave the old id as 7 rather than his new one