sr-npm 1.7.207 → 1.7.208
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 +6 -0
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -335,6 +335,12 @@ async function syncJobsFast() {
|
|
|
335
335
|
console.log("Creating collections");
|
|
336
336
|
await createCollections();
|
|
337
337
|
console.log("created collections successfully");
|
|
338
|
+
console.log("truncating cities collection");
|
|
339
|
+
await wixData.truncate(COLLECTIONS.CITIES);
|
|
340
|
+
console.log("truncating amount of jobs per department collection");
|
|
341
|
+
await wixData.truncate(COLLECTIONS.AMOUNT_OF_JOBS_PER_DEPARTMENT);
|
|
342
|
+
console.log("truncating jobs collection");
|
|
343
|
+
await wixData.truncate(COLLECTIONS.JOBS);
|
|
338
344
|
console.log("saving jobs data to CMS");
|
|
339
345
|
await saveJobsDataToCMS();
|
|
340
346
|
console.log("saved jobs data to CMS successfully");
|