+96
src/commands.test.ts
+96
src/commands.test.ts
···
···
+44
src/commands.ts
+44
src/commands.ts
···+text: `โ IRC channel ${ircChannel} is already bridged to <#${existingIrcMapping.slack_channel_id}>`,···+text: `โ IRC nick *${ircNick}* is already linked to <@${existingIrcMapping.slack_user_id}>`,
+108
-2
src/lib/db.ts
+108
-2
src/lib/db.ts
······
······+const hasIrcChannelUnique = channelSchema?.sql?.includes("irc_channel TEXT NOT NULL UNIQUE") ?? false;+"SELECT irc_channel, COUNT(*) as count FROM channel_mappings GROUP BY irc_channel HAVING count > 1",+"Warning: Found duplicate IRC channel mappings. Keeping only the most recent mapping for each IRC channel.",+"Warning: Found duplicate IRC nick mappings. Keeping only the most recent mapping for each IRC nick.",