fix: do not get status of more than 10 resources defined by category

This commit is contained in:
Andras Bacsai 2022-09-28 10:59:58 +02:00
parent 2105b1e7c4
commit 5c69ff3339

View File

@ -127,15 +127,15 @@
async function getStatus(resources: any, force: boolean = false) {
const { id, buildPack, dualCerts, type } = resources;
if (buildPack && applications.length > 10 && !force) {
if (buildPack && applications.length + filtered.otherApplications.length > 10 && !force) {
noInitialStatus.applications = true;
return;
}
if (type && services.length > 10 && !force) {
if (type && services.length + filtered.otherServices.length > 10 && !force) {
noInitialStatus.services = true;
return;
}
if (databases.length > 10 && !force) {
if (databases.length + filtered.otherDatabases.length > 10 && !force) {
noInitialStatus.databases = true;
return;
}