fix: variable operator id variable name
This commit is contained in:
parent
bca6e15356
commit
3c38dacdc7
3 changed files with 6 additions and 4 deletions
|
|
@ -1,8 +1,10 @@
|
|||
const db = require('./db')
|
||||
const _ = require('lodash/fp')
|
||||
|
||||
function getOperatorId (service) {
|
||||
const sql = `SELECT operator_id FROM operator_ids WHERE service = '${service}'`
|
||||
return db.oneOrNone(sql)
|
||||
.then(_.mapKeys(_.camelCase))
|
||||
}
|
||||
|
||||
module.exports = { getOperatorId }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue