Closed mariusdatakrag closed 1 month ago
When using multiple tenants, the tenantId from the web hooks should be used
See screenshot for the fix.
public function getResource() { if ($this->getEventCategory() === 'INVOICE') { return $this->accountingApi ->getInvoice($this->getTenantId(), $this->getResourceId()) ->getInvoices()[0]; } if ($this->getEventCategory() === 'CONTACT') { return $this->accountingApi ->getContact($this->getTenantId(), $this->getResourceId()) ->getContacts()[0]; } }
Thanks @mariusdatakrag, Well spotted!
Would you like to submit a PR so the fix is attributed to you?
I believe can be closed now @hailwood
Will be fixed in the upcoming 6.0 release.
When using multiple tenants, the tenantId from the web hooks should be used
See screenshot for the fix.