Skip to content

Commit

Permalink
acl connection const
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx committed Nov 23, 2023
1 parent 70f6b56 commit 483d128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/user/acl.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { Pool } = require('pg');

const connection = process.env.PRIVATE && process.env.PRIVATE.split('|')
|| process.env.PUBLIC && process.env.PUBLIC.split('|')

let pool = null

module.exports = () => {

const connection = process.env.PRIVATE && process.env.PRIVATE.split('|')
|| process.env.PUBLIC && process.env.PUBLIC.split('|')

if(!connection || !connection[1]) return

const acl_table = connection[1].split('.').pop()
Expand Down

0 comments on commit 483d128

Please sign in to comment.