summary refs log tree commit diff
path: root/src/util/schemas
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-02 22:24:56 +1100
committerGitHub <noreply@github.com>2023-02-02 22:24:56 +1100
commit067d2d8be8edc0f8f4492e7d02a0899f244c2dde (patch)
tree606c7569ed928a0a8f6727c32bb303211e7f64c2 /src/util/schemas
parentMerge pull request from GHSA-9q7f-pv47-cxp9 (diff)
downloadserver-067d2d8be8edc0f8f4492e7d02a0899f244c2dde.tar.xz
Merge pull request from GHSA-hqqp-gpqw-9w5c
Diffstat (limited to 'src/util/schemas')
-rw-r--r--src/util/schemas/UserModifySchema.ts4
-rw-r--r--src/util/schemas/UserSettingsSchema.ts2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/util/schemas/UserModifySchema.ts b/src/util/schemas/UserModifySchema.ts
index 2316477e..7851ec22 100644
--- a/src/util/schemas/UserModifySchema.ts
+++ b/src/util/schemas/UserModifySchema.ts
@@ -33,5 +33,9 @@ export interface UserModifySchema {
 	new_password?: string;
 	code?: string;
 	email?: string;
+	/**
+	 * @minLength 4
+	 * @maxLength 4
+	 */
 	discriminator?: string;
 }
diff --git a/src/util/schemas/UserSettingsSchema.ts b/src/util/schemas/UserSettingsSchema.ts
index 5a590b02..f315892e 100644
--- a/src/util/schemas/UserSettingsSchema.ts
+++ b/src/util/schemas/UserSettingsSchema.ts
@@ -18,4 +18,4 @@
 
 import { UserSettings } from "@fosscord/util";
 
-export type UserSettingsSchema = Partial<UserSettings>;
+export type UserSettingsSchema = Omit<Partial<UserSettings>, "index">;