feat: decouple l-s entrypoint
This commit is contained in:
parent
2a2c1fccc8
commit
f4d6b5e454
48 changed files with 411 additions and 232 deletions
|
|
@ -3,9 +3,13 @@
|
|||
'use strict'
|
||||
|
||||
const pgp = require('pg-promise')()
|
||||
const psqlUrl = require('../lib/options').postgresql
|
||||
|
||||
const db = pgp(psqlUrl)
|
||||
const path = require('path')
|
||||
require('dotenv').config({ path: path.resolve(__dirname, '../.env') })
|
||||
|
||||
const { PSQL_URL } = require('../lib/constants')
|
||||
|
||||
const db = pgp(PSQL_URL)
|
||||
|
||||
db.many('select data from user_config', 'exchanges')
|
||||
.then(rows => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue