chore: server code formatting

This commit is contained in:
Rafael Taranto 2025-05-12 15:35:00 +01:00
parent aedabcbdee
commit 68517170e2
234 changed files with 9824 additions and 6195 deletions

View file

@ -1,10 +1,9 @@
const db = require('./db')
const _ = require('lodash/fp')
function getOperatorId (service) {
function getOperatorId(service) {
const sql = `SELECT operator_id FROM operator_ids WHERE service = '${service}'`
return db.oneOrNone(sql)
.then(_.get('operator_id'))
return db.oneOrNone(sql).then(_.get('operator_id'))
}
module.exports = { getOperatorId }