sr-npm 1.7.50 → 1.7.51
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 +1 -8
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -138,18 +138,11 @@ async function saveJobsDescriptionsAndLocationToCMS() {
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
async function iterateOverAllJobs(results, field, jobsPerField, cityLocations) {
|
|
141
|
-
let page = 1;
|
|
142
|
-
do {
|
|
143
|
-
console.log(`Page ${page}: ${results.length} jobs.`);
|
|
144
141
|
countJobsPerGivenField(results, field, jobsPerField);
|
|
145
142
|
if (field === 'cityText') {
|
|
146
143
|
fillCityLocation(results, cityLocations);
|
|
147
144
|
}
|
|
148
|
-
|
|
149
|
-
results = await results.next();
|
|
150
|
-
page++;
|
|
151
|
-
}
|
|
152
|
-
} while (results.hasNext());
|
|
145
|
+
|
|
153
146
|
}
|
|
154
147
|
|
|
155
148
|
async function aggregateJobsByFieldToCMS({ field, collection }) {
|