2017-10-11 13:36:47 +00:00
|
|
|
module.exports = function(Self) {
|
2024-09-26 15:20:50 +00:00
|
|
|
Self.validate('text', function(err) {
|
2017-03-10 10:18:16 +00:00
|
|
|
if (!this.text) err();
|
2024-09-26 15:20:50 +00:00
|
|
|
}, {message: 'Description cannot be blank'});
|
|
|
|
|
|
|
|
Self.validate('observationTypeFk', function(err) {
|
|
|
|
if (!this.observationTypeFk) err();
|
|
|
|
}, {message: 'type cannot be blank'});
|
2017-03-10 10:18:16 +00:00
|
|
|
};
|