@researchdatabox/sails-hook-redbox-servicenow-catalog 0.0.10 → 0.0.11

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.
@@ -6,7 +6,7 @@ jobs:
6
6
  working_directory: ~/repo
7
7
  steps:
8
8
  - checkout
9
- - run: npm install
9
+ - run: npm install && node_modules/.bin/tsc
10
10
  # run tests!
11
11
  # - run: npm test
12
12
  # # store test results
@@ -53,7 +53,7 @@ var Services;
53
53
  let body_template = this.getConfig('catalog.body_template', options);
54
54
  sails.log.verbose(`ServiceNowCatalog body template:`);
55
55
  sails.log.verbose(JSON.stringify(body_template));
56
- const rdmpData = yield RecordsService.getMeta(workspaceData.metadata.rdmpOid).toPromise();
56
+ const rdmpData = yield RecordsService.getMeta(workspaceData.metadata.rdmpOid);
57
57
  const catalogFields = this.getConfig('catalog.fields', options);
58
58
  const outgoingDataSource = { workspace: workspaceData, rdmp: rdmpData, oid: oid, moment: moment, numeral: numeral, translationService: TranslationService };
59
59
  body_template = this.runDataRemap(outgoingDataSource, body_template, catalogFields);
@@ -77,7 +77,7 @@ var Services;
77
77
  if (snResponse.status == 200) {
78
78
  const updateSource = snResponse.data;
79
79
  workspaceData = this.runDataRemap(updateSource, workspaceData, this.getConfig('catalog.update_fields', options));
80
- yield RecordsService.updateMeta(null, oid, workspaceData).toPromise();
80
+ yield RecordsService.updateMeta(null, oid, workspaceData);
81
81
  }
82
82
  else {
83
83
  sails.log.error(`ServiceNowCatalog submit request failed for workspace OID: ${oid}, check server logs.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@researchdatabox/sails-hook-redbox-servicenow-catalog",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "ReDBox Workspace provisioner plugin for creating ServiceNow Catalog items.",
5
5
  "main": "index.js",
6
6
  "sails": {