sr-npm 1.7.1324 → 1.7.1325

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
@@ -165,9 +165,10 @@ async function retrieveJobsData() {
165
165
  });
166
166
 
167
167
  if (siteconfig.customFields==="true") {
168
-
168
+ console.log("populating custom fields and values collections");
169
169
  await populateCustomFieldsCollection(customFieldsLabels,templateType);
170
170
  await populateCustomValuesCollection(customFieldsValues);
171
+ console.log("populated custom fields and values collections successfully");
171
172
  }
172
173
 
173
174
  // Sort jobs by title (ascending, case-insensitive, numeric-aware)
@@ -195,6 +196,8 @@ async function populateCustomFieldsCollection(customFields,templateType) {
195
196
  _id: ID,
196
197
  })
197
198
  }
199
+
200
+ console.log("fieldstoinsert: cusotmfields ", fieldstoinsert);
198
201
  await wixData.bulkSave(COLLECTIONS.CUSTOM_FIELDS, fieldstoinsert);
199
202
  }
200
203
  async function populateCustomValuesCollection(customFieldsValues) {
@@ -213,6 +216,7 @@ async function populateCustomValuesCollection(customFieldsValues) {
213
216
  })
214
217
  }
215
218
  }
219
+ console.log("valuesToinsert: customFieldsValues ", valuesToinsert);
216
220
  await wixData.bulkSave(COLLECTIONS.CUSTOM_VALUES, valuesToinsert);
217
221
  }
218
222
 
@@ -420,7 +424,6 @@ async function syncJobsFast() {
420
424
  console.log("retrieving jobs descriptions and location apply url from SR API");
421
425
 
422
426
  const status=await retrieveJobsDescriptionsAndLocationApplyUrlReferences(jobsData);
423
- throw new Error("test");
424
427
  if(status.success){
425
428
 
426
429
  await clearCollections();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1324",
3
+ "version": "1.7.1325",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {