mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
disable valid on always return true
This commit is contained in:
parent
fcba1bc526
commit
b8c7515ec7
@ -34,15 +34,16 @@ export abstract class BaseCommand<T = any> implements Command<T> {
|
||||
|
||||
validate(): boolean {
|
||||
const methodLogger = createLogger(`validate`)
|
||||
methodLogger.debug(`validate() params=${JSON.stringify(this.params)}`)
|
||||
|
||||
methodLogger.debug(`validate() requiredFields=${JSON.stringify(this.requiredFields)} params=${JSON.stringify(this.params)}`)
|
||||
/*
|
||||
const isValid = this.requiredFields.every(field =>
|
||||
this.params[field] !== undefined &&
|
||||
this.params[field] !== null &&
|
||||
this.params[field] !== ''
|
||||
);
|
||||
methodLogger.debug(`validate() isValid=${isValid}`)
|
||||
return isValid;
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user