Fixed ticket basic data message type
This commit is contained in:
parent
ec7e52190a
commit
8228f49eed
|
@ -102,7 +102,7 @@ class Controller {
|
|||
return true;
|
||||
}, res => {
|
||||
if (res.data.error.message === 'NO_AGENCY_AVAILABLE')
|
||||
this.vnApp.showSuccess(
|
||||
this.vnApp.showMessage(
|
||||
this.$translate.instant(`There's no available agency for this landing date`)
|
||||
);
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
var path = require('path');
|
||||
var database = require(path.join(__dirname, '../../database.js'));
|
||||
var format = require(path.join(__dirname, '../../util/format.js'));
|
||||
let strftime = require('strftime');
|
||||
|
||||
module.exports = class SepaCore {
|
||||
async getData(params, cb) {
|
||||
|
@ -50,6 +50,6 @@ module.exports = class SepaCore {
|
|||
}
|
||||
|
||||
get currentDate() {
|
||||
return format.date(new Date(), '/');
|
||||
return strftime('%d-%m-%Y', new Date());
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue