diff --git a/src/lib/server/db/index.ts b/src/lib/server/db/index.ts index fe1a5af..2bf2554 100644 --- a/src/lib/server/db/index.ts +++ b/src/lib/server/db/index.ts @@ -73,6 +73,7 @@ class Db { async checkChannel(channel: string): Promise { try { + channel = sanitizeChannelName(channel); const res = await this.client.execute(`SELECT table_name FROM system_schema.tables WHERE keyspace_name = 'channels' AND table_name = ?`, [ channel.toLowerCase(), ]);