Update main.js

This commit is contained in:
Anatoly Khaytovich 2016-01-10 23:58:30 +02:00
parent 2f84260757
commit 00974a9868

View file

@ -10,7 +10,7 @@ const fs = require('fs');
const fmtp = require('./migration/fmtp/FromMySQL2PostgreSQL');
const nmig = new fmtp.FromMySQL2PostgreSQL();
fs.readFile(__dirname + '/config.json', function(error, data) {
fs.readFile(__dirname + '/config.json', (error, data) => {
if (error) {
console.log('\n\t--Cannot run migration\nCannot read configuration info from ' + __dirname + '/config.json');
} else {
@ -25,4 +25,3 @@ fs.readFile(__dirname + '/config.json', function(error, data) {
}
}
});