mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
Merge pull request #3816 from Dokploy/3815-in-database-backups-of-docker-compose-type-projects-the-keep-the-latest-n-function-does-not-take-effect
feat: add functionality to keep the latest N backups after running a job
This commit is contained in:
@@ -83,6 +83,7 @@ export const runJobs = async (job: QueueJob) => {
|
||||
return;
|
||||
}
|
||||
await runComposeBackup(compose, backup);
|
||||
await keepLatestNBackups(backup, server.serverId);
|
||||
}
|
||||
} else if (job.type === "server") {
|
||||
const { serverId } = job;
|
||||
|
||||
Reference in New Issue
Block a user