feat: create db table and store operator id

This commit is contained in:
José Oliveira 2021-06-12 19:32:57 +01:00
parent 86e9204a28
commit 9b28c6a3f1
4 changed files with 77 additions and 38 deletions

8
lib/operator.js Normal file
View 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 }