sr-npm 1.7.51 → 1.7.52

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/backend/data.js +5 -2
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -151,8 +151,11 @@ async function aggregateJobsByFieldToCMS({ field, collection }) {
151
151
  const cityLocations = {};
152
152
  let results = await getAllPositions();
153
153
  await iterateOverAllJobs(results, field, jobsPerField, cityLocations);
154
- let toSave = [];
154
+ const toSave = [];
155
+ console.log('jobsPerField is@@@@@@@@ ', jobsPerField);
156
+ console.log('cityLocations is@@@@@@@@ ', cityLocations);
155
157
  prepateToSaveArray(jobsPerField, cityLocations, field, toSave);
158
+ console.log('toSave is@@@@@@@@ ', toSave);
156
159
  if (toSave.length === 0) {
157
160
  console.log('No jobs found.');
158
161
  return { success: true, message: 'No jobs to save.' };
@@ -193,7 +196,7 @@ async function referenceJobsToField({ referenceField, sourceCollection, jobField
193
196
  // Fetch all jobs
194
197
  let jobsResults = await getAllPositions();
195
198
  let jobsToUpdate = [];
196
- console.log('jobsResults', jobsResults);
199
+ console.log('jobsResults@@@@@@@@ ', jobsResults);
197
200
 
198
201
  for (const job of jobsResults) {
199
202
  const refId = sourceMap[job[jobField]];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.51",
3
+ "version": "1.7.52",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {