Archived
2

sample number generation

This commit is contained in:
VLE2FE
2020-05-18 09:58:15 +02:00
parent ec03e0699c
commit fe6e82f00b
9 changed files with 121 additions and 77 deletions

View File

@ -44,7 +44,6 @@ export default class SampleValidate {
static input (data, param) { // validate data, param: new(everything required)/change(available attributes are validated)
if (param === 'new') {
return Joi.object({
number: this.sample.number.required(),
color: this.sample.color.required(),
type: this.sample.type.required(),
batch: this.sample.batch.required(),
@ -54,7 +53,6 @@ export default class SampleValidate {
}
else if (param === 'change') {
return Joi.object({
number: this.sample.number,
color: this.sample.color,
type: this.sample.type,
batch: this.sample.batch,