scheduled image prune notifications missing environment name (#770)

This commit is contained in:
jarek
2026-04-19 09:31:38 +02:00
parent 32e44c746b
commit 380fcc34ec
@@ -124,7 +124,7 @@ export async function runImagePrune(
// Send success notification only when something was actually cleaned up // Send success notification only when something was actually cleaned up
if (imagesRemoved > 0) { if (imagesRemoved > 0) {
await sendEventNotification('image_prune_success', { await sendEventNotification('image_prune_success', {
title: 'Image prune completed', title: `Image prune completed${env.name}`,
message: `${imagesRemoved} unused images removed, ${formatBytes(spaceReclaimed)} disk space reclaimed`, message: `${imagesRemoved} unused images removed, ${formatBytes(spaceReclaimed)} disk space reclaimed`,
type: 'success' type: 'success'
}, envId); }, envId);
@@ -142,7 +142,7 @@ export async function runImagePrune(
// Send failure notification // Send failure notification
await sendEventNotification('image_prune_failed', { await sendEventNotification('image_prune_failed', {
title: 'Image prune failed', title: `Image prune failed${env.name}`,
message: `Failed to prune images: ${error.message}`, message: `Failed to prune images: ${error.message}`,
type: 'error' type: 'error'
}, envId); }, envId);