sr-npm 1.7.49 → 1.7.50
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 +0 -2
- package/backend/queries.js +3 -4
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -60,7 +60,6 @@ async function saveJobsDescriptionsAndLocationToCMS() {
|
|
|
60
60
|
|
|
61
61
|
try {
|
|
62
62
|
let jobsWithNoDescriptions = await getJobsWithNoDescriptions();
|
|
63
|
-
console.log('jobsWithNoDescriptions is ', jobsWithNoDescriptions);
|
|
64
63
|
let totalUpdated = 0;
|
|
65
64
|
let totalFailed = 0;
|
|
66
65
|
let totalProcessed = 0;
|
|
@@ -233,7 +232,6 @@ async function referenceJobsToField({ referenceField, sourceCollection, jobField
|
|
|
233
232
|
}
|
|
234
233
|
|
|
235
234
|
function fetchJobLocation(jobDetails) {
|
|
236
|
-
console.log('jobDetails.location is ', jobDetails.location);
|
|
237
235
|
const isZeroLocation =
|
|
238
236
|
jobDetails.location.latitude === '0.0000' && jobDetails.location.longitude === '0.0000';
|
|
239
237
|
const jobLocation = {
|
package/backend/queries.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
const { COLLECTIONS,QUERY_MAX_LIMIT} = require('./consts');
|
|
2
1
|
const { items: wixData } = require('@wix/data');
|
|
3
2
|
|
|
4
3
|
async function getAllPositions() {
|
|
5
4
|
return wixData
|
|
6
|
-
.query(
|
|
7
|
-
.limit(
|
|
5
|
+
.query('Jobs1')
|
|
6
|
+
.limit(1000)
|
|
8
7
|
.find()
|
|
9
8
|
.then(result => result.items);
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
async function getPositionsByField(field, value) {
|
|
13
12
|
return wixData
|
|
14
|
-
.query(
|
|
13
|
+
.query('Jobs1')
|
|
15
14
|
.eq(field, value)
|
|
16
15
|
.find()
|
|
17
16
|
.then(result => result.items);
|