From fd2b066b9f33891e88ace9f63e86d7aa8de7a21f Mon Sep 17 00:00:00 2001 From: Pheuw1 Date: Fri, 17 Mar 2023 15:26:30 +0100 Subject: [PATCH] ch --- back/volume/src/chat/entity/channel.entity.ts | 5 +++++ front/volume/src/App.svelte | 2 +- front/volume/src/components/Channels.svelte | 11 +++++------ front/volume/src/components/Chat.svelte | 3 ++- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/back/volume/src/chat/entity/channel.entity.ts b/back/volume/src/chat/entity/channel.entity.ts index 384f8d7..7e3c3e9 100644 --- a/back/volume/src/chat/entity/channel.entity.ts +++ b/back/volume/src/chat/entity/channel.entity.ts @@ -13,6 +13,11 @@ import User from 'src/users/entity/user.entity' import Message from './message.entity' import * as bcrypt from 'bcrypt' +export interface Ban { + user: User + duration: number +} + @Entity() export default class Channel { @PrimaryGeneratedColumn() diff --git a/front/volume/src/App.svelte b/front/volume/src/App.svelte index e1f3d3f..31e7c93 100644 --- a/front/volume/src/App.svelte +++ b/front/volume/src/App.svelte @@ -167,7 +167,7 @@ let selectedChannel: ChannelsType; const handleSelectChannel = (channel: ChannelsType) => { selectedChannel = channel; - setAppState(APPSTATE.CHANNELS + "#" + channel.id); + setAppState(APPSTATE.CHANNELS + "#" + channel.name); }; // GAME diff --git a/front/volume/src/components/Channels.svelte b/front/volume/src/components/Channels.svelte index bf89fbb..1753a91 100644 --- a/front/volume/src/components/Channels.svelte +++ b/front/volume/src/components/Channels.svelte @@ -56,7 +56,7 @@