Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Mar 16, 2022
1 parent e154490 commit 3e68fff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/etl/add-organization-uuid-to-policy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require('dotenv').config({ path: `../../.env.${process.env.NODE_ENV}` });
const log = require('loglevel');

log.setDefaultLevel('info');


Expand All @@ -11,7 +12,7 @@ async function migrate() {
const roles = await thx.table('admin_role').select('*')

await Promise.all(roles.map(async (row) => {
let policy = row.policy;
const { policy } = row;
if(policy.organization){
log.info(policy);
const result = await thx.table('entity').where('id', '=', policy.organization.id)
Expand Down

0 comments on commit 3e68fff

Please sign in to comment.