fix: store operator id for each service
This commit is contained in:
parent
9b28c6a3f1
commit
8884c75ffd
4 changed files with 14 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
const db = require('./db')
|
||||
|
||||
function getOperatorId () {
|
||||
const sql = `SELECT id FROM operator_ids WHERE description = 'mnemonic'`
|
||||
function getOperatorId (service) {
|
||||
const sql = `SELECT operator_id FROM operator_ids WHERE service = '${service}'`
|
||||
return db.oneOrNone(sql)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue