// index.js
var config = require('./config');
var getsoda = require('./getsoda');
var insertrow = require('./insertrow');
var Promise = require("bluebird");


getsoda()
.each(function(record){
    insertrow(record);
    return 0;
})
.catch(function(e) {
    console.log('Error: ' + e)
})
.finally(function() {
    console.log('Fin.');
});
@@ -284,55 +284,6 @@
 )%0A%7D)
-%0A.finally(function() %7B%0A    console.log('Fin.');%0A%7D)
 ;
+%0A

Remove finish function.