Small improvements

This commit is contained in:
Alexander Cerutti
2019-04-04 22:58:18 +02:00
parent 45b1c0dd16
commit 2bdd906989
2 changed files with 5 additions and 5 deletions

View File

@@ -280,10 +280,11 @@ class Pass {
if (!dateParse) {
genericDebug(formatMessage("DATE_FORMAT_UNMATCH", "Expiration date"));
} else {
this._props.expirationDate = dateParse;
return this;
}
this._props.expirationDate = dateParse;
return this;
}
@@ -864,7 +865,6 @@ function assignLength(length, ...sources) {
return Object.assign({ length }, ...sources);
}
/**
* Automatically generates barcodes for all the types given common info
*

View File

@@ -189,8 +189,8 @@ const seat = Joi.object().keys({
});
const location = Joi.object().keys({
latitude: Joi.number(),
longitude: Joi.number()
latitude: Joi.number().required(),
longitude: Joi.number().required()
});
// --------- UTILITIES ---------- //