mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 23:25:26 +00:00
Small improvements
This commit is contained in:
@@ -280,10 +280,11 @@ class Pass {
|
|||||||
|
|
||||||
if (!dateParse) {
|
if (!dateParse) {
|
||||||
genericDebug(formatMessage("DATE_FORMAT_UNMATCH", "Expiration date"));
|
genericDebug(formatMessage("DATE_FORMAT_UNMATCH", "Expiration date"));
|
||||||
} else {
|
return this;
|
||||||
this._props.expirationDate = dateParse;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._props.expirationDate = dateParse;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -864,7 +865,6 @@ function assignLength(length, ...sources) {
|
|||||||
return Object.assign({ length }, ...sources);
|
return Object.assign({ length }, ...sources);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Automatically generates barcodes for all the types given common info
|
* Automatically generates barcodes for all the types given common info
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -189,8 +189,8 @@ const seat = Joi.object().keys({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const location = Joi.object().keys({
|
const location = Joi.object().keys({
|
||||||
latitude: Joi.number(),
|
latitude: Joi.number().required(),
|
||||||
longitude: Joi.number()
|
longitude: Joi.number().required()
|
||||||
});
|
});
|
||||||
|
|
||||||
// --------- UTILITIES ---------- //
|
// --------- UTILITIES ---------- //
|
||||||
|
|||||||
Reference in New Issue
Block a user