format for latest standard
This commit is contained in:
parent
4108efd9c7
commit
c2af183911
77 changed files with 1697 additions and 1693 deletions
|
|
@ -13,7 +13,7 @@ const headers = {
|
|||
|
||||
const body = JSON.stringify({tx: tx})
|
||||
got('http://localhost:3000/dispense', {body: body, json: true, headers: headers})
|
||||
.then(res => {
|
||||
console.log(res.body)
|
||||
})
|
||||
.catch(console.log)
|
||||
.then(res => {
|
||||
console.log(res.body)
|
||||
})
|
||||
.catch(console.log)
|
||||
|
|
|
|||
|
|
@ -15,17 +15,17 @@ db.init(psqlUrl)
|
|||
notifier.init(db, getBalances, {lowBalanceThreshold: 10})
|
||||
console.log('DEBUG0')
|
||||
notifier.checkStatus()
|
||||
.then(function (alertRec) {
|
||||
console.log('DEBUG1')
|
||||
console.log('%j', alertRec)
|
||||
var subject = notifier.alertSubject(alertRec)
|
||||
console.log(subject)
|
||||
var body = notifier.printEmailAlerts(alertRec)
|
||||
console.log(body)
|
||||
console.log(notifier.alertFingerprint(alertRec))
|
||||
process.exit(0)
|
||||
})
|
||||
.catch(function (err) {
|
||||
console.log(err.stack)
|
||||
process.exit(1)
|
||||
})
|
||||
.then(function (alertRec) {
|
||||
console.log('DEBUG1')
|
||||
console.log('%j', alertRec)
|
||||
var subject = notifier.alertSubject(alertRec)
|
||||
console.log(subject)
|
||||
var body = notifier.printEmailAlerts(alertRec)
|
||||
console.log(body)
|
||||
console.log(notifier.alertFingerprint(alertRec))
|
||||
process.exit(0)
|
||||
})
|
||||
.catch(function (err) {
|
||||
console.log(err.stack)
|
||||
process.exit(1)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -17,13 +17,13 @@ var rec = {
|
|||
|
||||
var db = config.connection
|
||||
config.loadConfig(db)
|
||||
.then(function (config) {
|
||||
plugins.configure(config)
|
||||
plugins.sendMessage(rec)
|
||||
.then(function () {
|
||||
console.log('Success.')
|
||||
.then(function (config) {
|
||||
plugins.configure(config)
|
||||
plugins.sendMessage(rec)
|
||||
.then(function () {
|
||||
console.log('Success.')
|
||||
})
|
||||
.catch(function (err) {
|
||||
console.log(err.stack)
|
||||
})
|
||||
})
|
||||
.catch(function (err) {
|
||||
console.log(err.stack)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue