@nsshunt/stsrunnerframework 1.0.123 → 1.0.125
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.
|
@@ -2410,10 +2410,10 @@ class STSWorkerManager {
|
|
|
2410
2410
|
// Filter by plan and/or tag. Leave blank to not use in filter.
|
|
2411
2411
|
__publicField(this, "GetArchiveList", (runnerSearchFilters) => {
|
|
2412
2412
|
try {
|
|
2413
|
-
return __privateGet(this, _archiveList).filter((runner) => !runnerSearchFilters.plan ? true : runner.options.plan.localeCompare(runnerSearchFilters.plan) === 0).filter((runner) => !runnerSearchFilters.planId ? true : runner.options.planId.localeCompare(runnerSearchFilters.planId) === 0).filter((runner) => !runnerSearchFilters.tag ? true : runner.options.tag.
|
|
2413
|
+
return __privateGet(this, _archiveList).filter((runner) => !runnerSearchFilters.plan ? true : !runner.options.plan ? false : runner.options.plan.localeCompare(runnerSearchFilters.plan) === 0).filter((runner) => !runnerSearchFilters.planId ? true : !runner.options.planId ? false : runner.options.planId.localeCompare(runnerSearchFilters.planId) === 0).filter((runner) => !runnerSearchFilters.tag ? true : !runner.options.tag ? false : runner.options.tag.includes(runnerSearchFilters.tag)).filter((runner) => !runnerSearchFilters.userDataKey ? true : !runner.options.userData ? false : runner.options.userData[runnerSearchFilters.userDataKey] ? true : false);
|
|
2414
2414
|
} catch (error) {
|
|
2415
2415
|
__privateGet(this, _error2).call(this, `GetArchiveList(): Error: [${error}]`);
|
|
2416
|
-
|
|
2416
|
+
return [];
|
|
2417
2417
|
}
|
|
2418
2418
|
});
|
|
2419
2419
|
__publicField(this, "GetWorker", async (workerId) => {
|