From 638362f3732b421c2f36e94f3f8948eb3a21f5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 11 Sep 2019 18:17:12 +0200 Subject: [PATCH] jshint --- dev/examples/zapier/authentication.js | 1 + dev/examples/zapier/creates/thirdparty.js | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dev/examples/zapier/authentication.js b/dev/examples/zapier/authentication.js index 8c373d0b78b..1c95c76f9c2 100644 --- a/dev/examples/zapier/authentication.js +++ b/dev/examples/zapier/authentication.js @@ -1,3 +1,4 @@ +/*jshint esversion: 6 */ const testAuth = (z , bundle) => { const url = bundle.authData.url+'/api/index.php/login'; // Normally you want to make a request to an endpoint that is either specifically designed to test auth, or one that diff --git a/dev/examples/zapier/creates/thirdparty.js b/dev/examples/zapier/creates/thirdparty.js index 05928c3f15b..d53692afd09 100644 --- a/dev/examples/zapier/creates/thirdparty.js +++ b/dev/examples/zapier/creates/thirdparty.js @@ -8,9 +8,15 @@ const createThirdparty = async (z, bundle) => { body: JSON.stringify({ name: bundle.inputData.name, name_alias: bundle.inputData.name_alias, + ref_ext: bundle.inputData.ref_ext, + ref_int: bundle.inputData.ref_int, address: bundle.inputData.address, zip: bundle.inputData.zip, town: bundle.inputData.town, + country_code: bundle.inputData.country_code, + country_id: bundle.inputData.country_id, + country: bundle.inputData.country, + phone: bundle.inputData.phone, email: bundle.inputData.email, client: bundle.inputData.client, fournisseur: bundle.inputData.fournisseur, @@ -80,4 +86,4 @@ module.exports = { {key: 'code_fournisseur', label: 'Supplier code'} ] } -}; \ No newline at end of file +};