feat: decouple l-s entrypoint
This commit is contained in:
parent
2a2c1fccc8
commit
f4d6b5e454
48 changed files with 411 additions and 232 deletions
|
|
@ -2,7 +2,7 @@ require('es6-promise').polyfill()
|
|||
|
||||
var notifier = require('../lib/notifier')
|
||||
var db = require('../lib/postgresql_interface')
|
||||
var psqlUrl = require('../lib/options').postgres
|
||||
const { PSQL_URL } = require('../lib/constants')
|
||||
|
||||
function getBalances () {
|
||||
return [
|
||||
|
|
@ -11,7 +11,7 @@ function getBalances () {
|
|||
]
|
||||
}
|
||||
|
||||
db.init(psqlUrl)
|
||||
db.init(PSQL_URL)
|
||||
notifier.init(db, getBalances, {lowBalanceThreshold: 10})
|
||||
console.log('DEBUG0')
|
||||
notifier.checkStatus()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue