Update main.js
This commit is contained in:
parent
2f84260757
commit
00974a9868
3
main.js
3
main.js
|
@ -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) {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue