fix: normalize notification destination names before checking for existence
This commit is contained in:
parent
3c7419f401
commit
0be65dc9b4
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue