format app.js to standard

This commit is contained in:
Josh Harvey 2016-04-23 02:01:19 +03:00
parent a8b75ca4d2
commit 8caeeb6e54
2 changed files with 63 additions and 83 deletions

View file

@ -1,7 +1,3 @@
'use strict'
require('es6-promise').polyfill()
var R = require('ramda')
var db = null
var getBalances = null
@ -10,6 +6,7 @@ function init (_db, _getBalances) {
db = _db
getBalances = _getBalances
}
exports.init = init
function toInt10 (str) { return parseInt(str, 10) }
@ -114,20 +111,4 @@ function checkStatus () {
return alerts
})
}
var _db = require('./postgresql_interface')
var connectionString = 'postgres://lamassu:lamassu@localhost/lamassu'
var _getBalances = function () {
return [{cryptoCode: 'BTC', fiatBalance: 12}, {cryptoCode: 'ETH', fiatBalance: 8}]
}
_db.init(connectionString)
init(_db, _getBalances)
checkStatus()
.then(function (alerts) {
console.log('DEBUG1')
console.log('%j', alerts)
process.exit(0)
})
exports.checkStatus = checkStatus