format for latest standard
This commit is contained in:
parent
4108efd9c7
commit
c2af183911
77 changed files with 1697 additions and 1693 deletions
|
|
@ -7,17 +7,17 @@ function multi (sqls, cb) {
|
|||
const doQuery = s => {
|
||||
return () => {
|
||||
return db.none(s)
|
||||
.catch(err => {
|
||||
console.log(err.stack)
|
||||
throw err
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err.stack)
|
||||
throw err
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return sequential(sqls.map(doQuery))
|
||||
.then(() => cb())
|
||||
.catch(err => {
|
||||
console.log(err.stack)
|
||||
cb(err)
|
||||
})
|
||||
.then(() => cb())
|
||||
.catch(err => {
|
||||
console.log(err.stack)
|
||||
cb(err)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue