chore: undo $ prepend on queries

This commit is contained in:
Taranto 2021-07-22 11:06:39 +01:00 committed by Josh Harvey
parent f3f2bb01b0
commit ba4117173e
50 changed files with 215 additions and 227 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 }