fix: return the recipient as an array to match other formats from zapier (#971)

Return the recipient as an array to match the other formats for Zapier.
Otherwise, Zaps with the "DOCUMENT_OPENED" hooks won't work.

All the other webhooks return the "Recipient" field as an array.
This commit is contained in:
Catalin Pit
2024-02-29 08:37:01 +02:00
committed by GitHub
parent e5be219b99
commit ebe23335f8
4 changed files with 5 additions and 5 deletions

View File

@ -70,6 +70,6 @@ export const getDocumentAndRecipientByToken = async ({
return {
...result,
Recipient: result.Recipient[0],
Recipient: result.Recipient,
};
};