config fixes

This commit is contained in:
Josh Harvey 2016-06-12 17:53:23 +03:00
parent 426c2f2adf
commit 220a68fcfa
5 changed files with 10 additions and 6 deletions

View file

@ -2,7 +2,12 @@
var pg = require('pg');
var async = require('async');
var psqlUrl = require('../lib/options').postgres
var psqlUrl = require('../lib/options').postgresql
if (psqlUrl) {
console.log('No postgresql entry in config file')
process.exit(1)
}
exports.query = function query(sql, cb) {
exports.multi([sql], cb);