Closed PrenSJ2 closed 5 months ago
I think the problem is that deals are triggering an update to the Company, by the deals' hermes id
I think the problem is that when we are validating the PipedriveEvent to a PDDeal or PDPerson ... the event data only contains name and hermes_id so the validation doesn't know which object to validate against, thus chooses the wrong one
turns out this is actually due to the callbooker sending two identical sales/book at the same time to hermes, which then causes us to create two deals ... two orgs ... two companies ... and then there is either a race condition or we are deleting the first company without updating the information
Therefore this should involve, #63
something weird is happening in a_vaildate