fix(dokploy): filter notifications by admin

This commit is contained in:
Mauricio Siu
2024-11-04 10:10:52 -06:00
parent 8af5afbb6c
commit 6b7712e35f
11 changed files with 45 additions and 10 deletions

View File

@@ -242,7 +242,7 @@ export const settingsRouter = createTRPCRouter({
await cleanUpUnusedImages(server.serverId);
await cleanUpDockerBuilder(server.serverId);
await cleanUpSystemPrune(server.serverId);
await sendDockerCleanupNotifications();
await sendDockerCleanupNotifications(server.adminId);
});
}
} else {
@@ -278,7 +278,7 @@ export const settingsRouter = createTRPCRouter({
await cleanUpUnusedImages();
await cleanUpDockerBuilder();
await cleanUpSystemPrune();
await sendDockerCleanupNotifications();
await sendDockerCleanupNotifications(admin.adminId);
});
} else {
const currentJob = scheduledJobs["docker-cleanup"];