summary refs log tree commit diff
path: root/src/schema/Channel.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 21:50:20 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 21:50:20 +0200
commit2bebfa165353acc2449c7ab8dac3f95243ff0fba (patch)
tree6cf5d94d74087643dee19406e3b07337ad0f9668 /src/schema/Channel.ts
parent:bug: fix vanity url (diff)
downloadserver-2bebfa165353acc2449c7ab8dac3f95243ff0fba.tar.xz
:bug: fix post/patch channel
Diffstat (limited to '')
-rw-r--r--src/schema/Channel.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/schema/Channel.ts b/src/schema/Channel.ts
index 2cb7f7f4..48c3a1d2 100644
--- a/src/schema/Channel.ts
+++ b/src/schema/Channel.ts
@@ -3,7 +3,7 @@ import { Length } from "../util/instanceOf";
 
 export const ChannelModifySchema = {
 	name: new Length(String, 2, 100),
-	type: Number,
+	type: new Length(Number, 0, 13),
 	$topic: new Length(String, 0, 1024),
 	$bitrate: Number,
 	$user_limit: Number,