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

@ -108,7 +108,7 @@ function getMachines (rates, settings) {
where display=TRUE and
paired=TRUE
order by created`
return db.any(sql, [STALE_INTERVAL])
return db.$any(sql, [STALE_INTERVAL])
.then(_.map(_.partial(mapMachine, [rates, settings])))
}

View file

@ -260,6 +260,6 @@ test('Verify axios request schema', async () => {
)
)
db.any.mockResolvedValue(dbResponse)
db.$any.mockResolvedValue(dbResponse)
await car.update(rates, settings)
})