vtb-appit 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/appit-notify.js CHANGED
@@ -3,13 +3,13 @@ const {readFileSync} = require('fs');
3
3
 
4
4
  class AppitNotify {
5
5
  async exec(status, token, workspaceId, excursionId, messages) {
6
- console.log('notify ouput');
7
6
  let query = '';
7
+ let proposalId = process.env.PROPOSAL_ID.split('-');
8
8
  if(status === 'done') {
9
9
  query = `
10
10
  mutation {
11
11
  proposalbuildUpdate(input: {
12
- id: "${process.env.PROPOSAL_ID}",
12
+ id: "${proposalId[1]}",
13
13
  status: "done",
14
14
  url: "https://portal.appit4travel.com/en/admin/workspaces/${workspaceId}/excursions/${excursionId}/edit"
15
15
  }) {
@@ -30,7 +30,7 @@ class AppitNotify {
30
30
  query = `
31
31
  mutation {
32
32
  proposalbuildUpdate(input: {
33
- id: "${process.env.PROPOSAL_ID}",
33
+ id: "${proposalId[1]}",
34
34
  status: "failed",
35
35
  url: "${url}",
36
36
  messages: [${messages.map(msg =>
@@ -62,7 +62,6 @@ class AppitNotify {
62
62
  'Content-Type': 'application/json'
63
63
  }
64
64
  });
65
- console.log('abs');
66
65
  console.log(response.data);
67
66
  } catch (error) {
68
67
  console.log('catch');
package/appit.js CHANGED
@@ -198,7 +198,7 @@ class Appit {
198
198
  if(step.name == 'excursion' && !this.history.excursionId) {
199
199
  if(!this.transformer.vtbMessages.length) {
200
200
  this.transformer.vtbMessages.push({
201
- 'message': 'Reis kon niet worden aangemaakt in Appit, neem contact op met <a href="mailto:support@3rdfloorcoding.nl">support@3rdfloorcoding.nl</a>.'
201
+ 'message': 'Reis kon niet worden aangemaakt in Appit, neem contact op met support@3rdfloorcoding.nl.'
202
202
  });
203
203
  }
204
204
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vtb-appit",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {},