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.
Files changed (2) hide show
  1. package/backend/data.js +1 -8
  2. 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
- if (results.hasNext()) {
149
- results = await results.next();
150
- page++;
151
- }
152
- } while (results.hasNext());
145
+
153
146
  }
154
147
 
155
148
  async function aggregateJobsByFieldToCMS({ field, collection }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.50",
3
+ "version": "1.7.51",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {