Add Deal Product resource to Pipedrive node (#2022)

* Feature to add/remove/update/get Product in a Deal

*  Refactor Pipedrive deal product expansion

* 🔥 Remove leftover operation reference

*  Fix indentation

*  Separate dealProduct:create and update fields

*  Improvements

Co-authored-by: Rodrigo Correia <rodrigoscdc@gmail.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
Iván Ovejero
2021-08-01 21:19:41 +02:00
committed by GitHub
parent 28819ca502
commit d5418044bc
2 changed files with 447 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ export async function pipedriveApiRequest(this: IHookFunctions | IExecuteFunctio
return {
additionalData: responseData.additional_data,
data: responseData.data,
data: (responseData.data === null) ? [] : responseData.data,
};
} catch (error) {
throw new NodeApiError(this.getNode(), error);