summary refs log tree commit diff
path: root/src/schema
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-25 19:46:57 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-25 19:46:57 +0200
commit5dd97905ab03bb50878191bee403b0cb23329636 (patch)
treef2796548c0078ca7e95b59573f27d51711e196fc /src/schema
parent:bug: add event for Message Delete route (diff)
downloadserver-5dd97905ab03bb50878191bee403b0cb23329636.tar.xz
:art: formatting files
Diffstat (limited to 'src/schema')
-rw-r--r--src/schema/Channel.ts18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/schema/Channel.ts b/src/schema/Channel.ts

index 3a22872a..70e305e4 100644 --- a/src/schema/Channel.ts +++ b/src/schema/Channel.ts
@@ -22,21 +22,13 @@ export const ChannelModifySchema = { }; export const DmChannelCreateSchema = { - owner_id: String, - $id: String, - $created_at: Date, - name: String, - type: Number, - recipients: [String] -} + $name: String, + recipients: [String], +}; export interface DmChannelCreateSchema { - owner_id: String; - id?: String; - created_at?: Date; - name: String; - type: Number; - recipients: String[]; + name?: string; + recipients: string[]; } export interface ChannelModifySchema {