format for latest standard
This commit is contained in:
parent
4108efd9c7
commit
c2af183911
77 changed files with 1697 additions and 1693 deletions
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue