Chore: refactor to use new schema changing queries

This commit is contained in:
csrapr 2021-03-01 15:55:29 +00:00 committed by Josh Harvey
parent 304f792484
commit e6059be8d2
44 changed files with 185 additions and 171 deletions

View file

@ -78,7 +78,7 @@ function customerHistory (customerId, thresholdDays) {
ORDER BY created;`
const days = _.isNil(thresholdDays) ? 0 : thresholdDays
return db.any(sql, [customerId, `${days} days`])
return db.$any(sql, [customerId, `${days} days`])
}
module.exports = { post, cancel, customerHistory }