fix: remove validation

This commit is contained in:
karishmas6
2024-10-26 19:07:11 +05:30
parent 2e5436a3e4
commit 487b474a63

View File

@@ -61,13 +61,13 @@ User.init(
proxy_username: { proxy_username: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
validate: { // validate: {
isProxyPasswordRequired(value: string | null) { // isProxyPasswordRequired(value: string | null) {
if (value && !this.proxy_password) { // if (value && !this.proxy_password) {
throw new Error('Proxy password is required when proxy username is provided'); // throw new Error('Proxy password is required when proxy username is provided');
} // }
}, // },
}, // },
}, },
proxy_password: { proxy_password: {
type: DataTypes.STRING, type: DataTypes.STRING,