From 3e68fff63084ee2f44842abb5013c5ee7ab88080 Mon Sep 17 00:00:00 2001 From: Zaven Arra Date: Wed, 16 Mar 2022 13:38:03 -0700 Subject: [PATCH] fix: linting --- database/etl/add-organization-uuid-to-policy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/etl/add-organization-uuid-to-policy.js b/database/etl/add-organization-uuid-to-policy.js index fb617fa..453231d 100644 --- a/database/etl/add-organization-uuid-to-policy.js +++ b/database/etl/add-organization-uuid-to-policy.js @@ -1,5 +1,6 @@ require('dotenv').config({ path: `../../.env.${process.env.NODE_ENV}` }); const log = require('loglevel'); + log.setDefaultLevel('info'); @@ -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)