notes: Crear
This commit is contained in:
parent
5e66bef50c
commit
4bc1cf455b
|
@ -1,5 +1,4 @@
|
|||
module.exports = function(ClientObservation) {
|
||||
|
||||
ClientObservation.validate('text', isEnabled, {message: 'Se debe rellenar el campo de texto'});
|
||||
function isEnabled(err) {
|
||||
if (!this.text) err();
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
"model": "SalesPerson",
|
||||
"foreignKey": "id"
|
||||
},
|
||||
"client": {
|
||||
"clients": {
|
||||
"type": "hasOne",
|
||||
"model": "Client",
|
||||
"type": "belongsTo",
|
||||
"foreignKey": "id"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue