sr-npm 1.7.20 → 1.7.21
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 +2 -2
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -3,7 +3,7 @@ const { fetchPositionsFromSRAPI, fetchJobDescription } = require('./fetchPositio
|
|
|
3
3
|
const { chunkedBulkOperation } = require('./utils');
|
|
4
4
|
const { createCollectionIfMissing } = require('@hisense-staging/velo-npm/backend');
|
|
5
5
|
const { COLLECTIONS, COLLECTIONS_FIELDS } = require('./collectionConsts');
|
|
6
|
-
const { secrets } = require("wix-secrets-backend
|
|
6
|
+
const { secrets } = require("wix-secrets-backend");
|
|
7
7
|
const { elevate } = require("wix-auth");
|
|
8
8
|
|
|
9
9
|
// Utility function to normalize city names
|
|
@@ -295,7 +295,6 @@ async function referenceJobsToField({
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
function fetchJobLocation(jobDetails) {
|
|
298
|
-
console.log("jobDetails.location is ", jobDetails.location);
|
|
299
298
|
const isZeroLocation = jobDetails.location.latitude === "0.0000" && jobDetails.location.longitude === "0.0000";
|
|
300
299
|
const jobLocation = {
|
|
301
300
|
location: isZeroLocation ? {} : {
|
|
@@ -346,6 +345,7 @@ async function createApiKeyCollectionAndFillIt() {
|
|
|
346
345
|
console.log("Smart token inserted into the ApiKey collection");
|
|
347
346
|
}
|
|
348
347
|
|
|
348
|
+
|
|
349
349
|
module.exports = {
|
|
350
350
|
saveDataJobsToCMS,
|
|
351
351
|
saveJobsDescriptionsAndLocationToCMS,
|