sr-npm 1.7.512 → 1.7.513
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 +3 -1
- package/package.json +1 -1
- package/pages/positionPage.js +2 -3
package/backend/data.js
CHANGED
|
@@ -357,6 +357,7 @@ async function syncJobsFast() {
|
|
|
357
357
|
await createCollections();
|
|
358
358
|
await clearCollections();
|
|
359
359
|
await fillSecretManagerMirror();
|
|
360
|
+
|
|
360
361
|
console.log("saving jobs data to CMS");
|
|
361
362
|
await saveJobsDataToCMS();
|
|
362
363
|
console.log("saved jobs data to CMS successfully");
|
|
@@ -373,7 +374,8 @@ async function clearCollections() {
|
|
|
373
374
|
await Promise.all([
|
|
374
375
|
wixData.truncate(COLLECTIONS.CITIES),
|
|
375
376
|
wixData.truncate(COLLECTIONS.AMOUNT_OF_JOBS_PER_DEPARTMENT),
|
|
376
|
-
wixData.truncate(COLLECTIONS.JOBS)
|
|
377
|
+
wixData.truncate(COLLECTIONS.JOBS),
|
|
378
|
+
wixData.truncate(COLLECTIONS.BRANDS)
|
|
377
379
|
]);
|
|
378
380
|
console.log("cleared collections successfully");
|
|
379
381
|
}
|
package/package.json
CHANGED
package/pages/positionPage.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
const { query } = require("wix-location-frontend");
|
|
1
2
|
const {
|
|
2
3
|
htmlToText,
|
|
3
4
|
appendQueryParams
|
|
4
5
|
} = require('../public/utils');
|
|
5
|
-
|
|
6
|
+
|
|
6
7
|
|
|
7
8
|
async function positionPageOnReady(_$w) {
|
|
8
9
|
|
|
@@ -42,10 +43,8 @@ const {
|
|
|
42
43
|
|
|
43
44
|
function handleApplyButton(_$w,item) {
|
|
44
45
|
_$w('#applyButton').target="_blank";//so it can open in new tab
|
|
45
|
-
console.log("query is: ", query);
|
|
46
46
|
const url=appendQueryParams(item.applyLink,query);
|
|
47
47
|
_$w('#applyButton').link=url; //so it can be clicked
|
|
48
|
-
console.log("url is: ", url);
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
module.exports = {
|