6995-testToMaster_2410 #2139

Merged
alexm merged 236 commits from 6995-testToMaster_2410 into master 2024-03-07 07:09:08 +00:00
1 changed files with 10 additions and 6 deletions
Showing only changes of commit c8ca855ba9 - Show all commits

View File

@ -17,13 +17,17 @@ module.exports = Self => {
message: 'The social name cannot be empty' message: 'The social name cannot be empty'
}); });
Self.validatesPresenceOf('city', { if (this.city) {
message: 'City cannot be empty' Self.validatesPresenceOf('city', {
}); message: 'City cannot be empty'
});
}
Self.validatesPresenceOf('nif', { if (this.nif) {
message: 'The nif cannot be empty' Self.validatesPresenceOf('nif', {
}); message: 'The nif cannot be empty'
});
}
Self.validatesUniquenessOf('nif', { Self.validatesUniquenessOf('nif', {
message: 'TIN must be unique' message: 'TIN must be unique'