refs #7004 perf: city/nif validation

This commit is contained in:
Javier Segarra 2024-03-08 08:45:41 +01:00
parent 05e3129d34
commit baeeac984e
1 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ module.exports = Self => {
type: 'string'
}, {
arg: 'nif',
type: 'string'
type: 'any'
}, {
arg: 'account',
type: 'any'
@ -37,7 +37,7 @@ module.exports = Self => {
type: 'any'
}, {
arg: 'city',
type: 'string'
type: 'any'
}, {
arg: 'provinceFk',
type: 'any'
@ -87,11 +87,11 @@ module.exports = Self => {
}
}
if (!city) {
if (city === null) {
throw new UserError('The city cannot be empty'
);
}
if (!nif) {
if (nif === null) {
throw new UserError('The nif cannot be empty'
);
}