sr-npm 1.7.405 → 1.7.406
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 +5 -2
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -359,12 +359,15 @@ async function referenceJobs() {
|
|
|
359
359
|
console.log("finished referencing jobs");
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
async function syncJobsFast(templateType) {
|
|
362
|
+
async function syncJobsFast(templateType='something') {
|
|
363
363
|
console.log("templateType is : ", templateType);
|
|
364
|
-
|
|
364
|
+
|
|
365
365
|
console.log("Syncing jobs fast");
|
|
366
366
|
await createCompanyIdCollectionAndFillIt();
|
|
367
|
+
if(templateType==='INTERNAL')
|
|
368
|
+
{
|
|
367
369
|
await createApiKeyCollectionAndFillIt();
|
|
370
|
+
}
|
|
368
371
|
await createCollections();
|
|
369
372
|
await clearCollections();
|
|
370
373
|
console.log("saving jobs data to CMS");
|