sr-npm 1.7.1326 → 1.7.1328

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/backend/data.js CHANGED
@@ -164,12 +164,6 @@ async function retrieveJobsData() {
164
164
  return basicJob;
165
165
  });
166
166
 
167
- // if (siteconfig.customFields==="true") {
168
- // console.log("populating custom fields and values collections");
169
- // await populateCustomFieldsCollection(customFieldsLabels,templateType);
170
- // await populateCustomValuesCollection(customFieldsValues);
171
- // console.log("populated custom fields and values collections successfully");
172
- // }
173
167
 
174
168
  // Sort jobs by title (ascending, case-insensitive, numeric-aware)
175
169
  jobsData.sort((a, b) => {
@@ -196,8 +190,7 @@ async function populateCustomFieldsCollection(customFields,templateType) {
196
190
  _id: ID,
197
191
  })
198
192
  }
199
-
200
- console.log("fieldstoinsert: cusotmfields ", fieldstoinsert);
193
+
201
194
  await wixData.bulkSave(COLLECTIONS.CUSTOM_FIELDS, fieldstoinsert);
202
195
  }
203
196
  async function populateCustomValuesCollection(customFieldsValues) {
@@ -216,7 +209,6 @@ async function populateCustomValuesCollection(customFieldsValues) {
216
209
  })
217
210
  }
218
211
  }
219
- console.log("valuesToinsert: customFieldsValues ", valuesToinsert);
220
212
  await wixData.bulkSave(COLLECTIONS.CUSTOM_VALUES, valuesToinsert);
221
213
  }
222
214
 
@@ -428,7 +420,7 @@ async function syncJobsFast() {
428
420
 
429
421
  await clearCollections();
430
422
  const updatedJobs=status.updatedJobs;
431
- console.log("saving jobs to CMS");
423
+
432
424
  if (siteconfig.customFields==="true") {
433
425
  const { templateType } = await getApiKeys();
434
426
  console.log("populating custom fields and values collections");
@@ -436,8 +428,10 @@ async function syncJobsFast() {
436
428
  await populateCustomValuesCollection(customFieldsValues);
437
429
  console.log("populated custom fields and values collections successfully");
438
430
  }
431
+ console.log("saving jobs to CMS");
439
432
  await saveJobsToCMS(updatedJobs);
440
-
433
+ console.log("saved jobs to CMS successfully");
434
+
441
435
  if (siteconfig.customFields==="true") {
442
436
  await insertJobsReferencesToCustomValuesCollection();
443
437
  }
@@ -458,14 +452,7 @@ async function syncJobsFast() {
458
452
  }
459
453
 
460
454
  async function saveJobsToCMS(updatedJobs) {
461
- // if (siteconfig.customFields==="true") {
462
- // console.log("populating custom fields and values collections");
463
- // const { templateType } = await getApiKeys();
464
-
465
- // await populateCustomFieldsCollection(customFieldsLabels,templateType);
466
- // await populateCustomValuesCollection(customFieldsValues);
467
- // console.log("populated custom fields and values collections successfully");
468
- // }
455
+
469
456
  const chunkSize = 1000;
470
457
  let totalSaved = 0;
471
458
  const totalChunks = Math.ceil(updatedJobs.length / chunkSize);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1326",
3
+ "version": "1.7.1328",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,7 +27,7 @@ const {
27
27
 
28
28
  if(companysegmentValue===undefined || companysegmentValue.length===0) {
29
29
 
30
- _$w("#notifyMe").hide()
30
+ _$w("#notifyMeSection").collapse()
31
31
  console.log(`companysegmentValue is ${siteconfig.showNotifyMeForCompanySegment}, hiding notifyMe`);
32
32
  }
33
33