sr-npm 1.7.117 → 1.7.119
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 +4 -0
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -29,6 +29,8 @@ async function saveJobsDataToCMS() {
|
|
|
29
29
|
// bulk insert to jobs collection without descriptions first
|
|
30
30
|
const jobsData = positions.content.map(position => {
|
|
31
31
|
validatePosition(position);
|
|
32
|
+
console.log("before: position.department.label", position.department.label);
|
|
33
|
+
console.log("after: position.department.label", position.department.label.replace('&', ' and '));
|
|
32
34
|
const basicJob = {
|
|
33
35
|
_id: position.id,
|
|
34
36
|
title: position.title,
|
|
@@ -41,8 +43,10 @@ async function saveJobsDataToCMS() {
|
|
|
41
43
|
postingStatus: position.postingStatus,
|
|
42
44
|
jobDescription: null, // Will be filled later
|
|
43
45
|
};
|
|
46
|
+
console.log("basicJob", basicJob);
|
|
44
47
|
return basicJob;
|
|
45
48
|
});
|
|
49
|
+
console.log("jobsData@@@@@@@", jobsData);
|
|
46
50
|
|
|
47
51
|
const chunkSize = 1000;
|
|
48
52
|
let totalSaved = 0;
|