refactor: getOperatorId return value
This commit is contained in:
parent
5b38ac2636
commit
74b3c1a9ce
4 changed files with 4 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ 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))
|
||||
.then(_.get('operator_id'))
|
||||
}
|
||||
|
||||
module.exports = { getOperatorId }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue