refactor(dokploy): set condition to 10

This commit is contained in:
Mauricio Siu
2024-10-30 22:50:12 -06:00
parent 6417e13336
commit 41b274fbb3

View File

@@ -196,7 +196,7 @@ const removeLastTenDeployments = async (
orderBy: desc(deployments.createdAt),
});
if (deploymentList.length >= 10) {
if (deploymentList.length > 10) {
const deploymentsToDelete = deploymentList.slice(10);
if (serverId) {
let command = "";