From 487b474a6326eef8d7760b24c38e5ac951b26c55 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 26 Oct 2024 19:07:11 +0530 Subject: [PATCH] fix: remove validation --- server/src/models/User.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/src/models/User.ts b/server/src/models/User.ts index 2bb465d2..c8d6884e 100644 --- a/server/src/models/User.ts +++ b/server/src/models/User.ts @@ -61,13 +61,13 @@ User.init( proxy_username: { type: DataTypes.STRING, allowNull: true, - validate: { - isProxyPasswordRequired(value: string | null) { - if (value && !this.proxy_password) { - throw new Error('Proxy password is required when proxy username is provided'); - } - }, - }, + // validate: { + // isProxyPasswordRequired(value: string | null) { + // if (value && !this.proxy_password) { + // throw new Error('Proxy password is required when proxy username is provided'); + // } + // }, + // }, }, proxy_password: { type: DataTypes.STRING,