fix: normalize notification destination names before checking for existence

This commit is contained in:
Jakub Trávník 2025-12-30 19:14:49 +00:00
parent 3c7419f401
commit 0be65dc9b4

View file

@ -286,7 +286,8 @@ async function importNotificationDestinations(notificationDestinations: unknown[
}
// The service uses slugify to normalize the name, so we check against stored names
if (existingNames.has(n.name)) {
const slugifiedName = slugify(n.name, { lower: true, strict: true });
if (existingNames.has(slugifiedName)) {
logger.info(`Notification destination '${n.name}' already exists`);
result.skipped++;
continue;