feat: create db table and store operator id
This commit is contained in:
parent
86e9204a28
commit
9b28c6a3f1
4 changed files with 77 additions and 38 deletions
8
lib/operator.js
Normal file
8
lib/operator.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
const db = require('./db')
|
||||
|
||||
function getOperatorId () {
|
||||
const sql = `SELECT id FROM operator_ids WHERE description = 'mnemonic'`
|
||||
return db.oneOrNone(sql)
|
||||
}
|
||||
|
||||
module.exports = { getOperatorId }
|
||||
Loading…
Add table
Add a link
Reference in a new issue