Fixed ticket basic data message type

This commit is contained in:
Joan Sanchez 2018-08-06 14:25:11 +02:00
parent ec7e52190a
commit 8228f49eed
2 changed files with 3 additions and 3 deletions

View File

@ -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`)
);
});

View File

@ -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());
}
};