@journeyapps-solutions/cc-util-sync-collective 1.0.2 → 1.0.4

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -138,7 +138,7 @@ class SyncCollective {
138
138
  assert(options.objectToSync, `${NAME} - options.objectToSync not provided.`);
139
139
 
140
140
  //We do a fetch due to have enumerable ID's
141
- let _fetchUrl = SyncUtilSlave.buildFetchUrl(_data, _this2.config.url, options.objectToSync.type.name);
141
+ let _fetchUrl = SyncUtilSlave.buildFetchUrl(options.objectToSync, _this2.config.url, options.objectToSync.type.name);
142
142
  let _data = yield _this2._fetchRecord(_fetchUrl);
143
143
 
144
144
  let _url = SyncUtilSlave.buildUrl(_data, _this2.config.url, _this2.config.collective);
@@ -227,7 +227,7 @@ class SyncCollective {
227
227
  console.log(`GET ${url}`);
228
228
 
229
229
  let _response = yield fetch(`${url}`, {
230
- headers: header,
230
+ headers: _header,
231
231
  method: "GET"
232
232
  });
233
233
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@journeyapps-solutions/cc-util-sync-collective",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Sync Data between projects. Either Directly, or via Slave & Master Configuration",
5
5
  "main": "./index.js",
6
6
  "scripts": {