sr-npm 1.7.405 → 1.7.407
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/consts.js +2 -2
- package/backend/data.js +3 -2
- package/package.json +1 -1
package/backend/consts.js
CHANGED
|
@@ -65,8 +65,8 @@ const TASKS = {
|
|
|
65
65
|
},
|
|
66
66
|
[TASKS_NAMES.SYNC_JOBS_FAST]: {
|
|
67
67
|
name: TASKS_NAMES.SYNC_JOBS_FAST,
|
|
68
|
-
getIdentifier:task=>task.data,
|
|
69
|
-
process:
|
|
68
|
+
getIdentifier:task=>task.data.templateType,
|
|
69
|
+
process:templateType=>syncJobsFast(templateType),
|
|
70
70
|
shouldSkipCheck:()=>false,
|
|
71
71
|
estimatedDurationSec:60
|
|
72
72
|
}
|
package/backend/data.js
CHANGED
|
@@ -360,11 +360,12 @@ async function referenceJobs() {
|
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
async function syncJobsFast(templateType) {
|
|
363
|
-
console.log("templateType is : ", templateType);
|
|
364
|
-
|
|
365
363
|
console.log("Syncing jobs fast");
|
|
366
364
|
await createCompanyIdCollectionAndFillIt();
|
|
365
|
+
if(templateType==='INTERNAL')
|
|
366
|
+
{
|
|
367
367
|
await createApiKeyCollectionAndFillIt();
|
|
368
|
+
}
|
|
368
369
|
await createCollections();
|
|
369
370
|
await clearCollections();
|
|
370
371
|
console.log("saving jobs data to CMS");
|