From 94a6a29c3d96801e801e7df485e9ed72ca3f10cf Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 27 Jan 2022 09:02:58 -0500 Subject: [PATCH] fix: return resolved org info instead of raw --- src/models/organizations/organizations.model.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/models/organizations/organizations.model.js b/src/models/organizations/organizations.model.js index ef1b25e1..5b0f8cf6 100644 --- a/src/models/organizations/organizations.model.js +++ b/src/models/organizations/organizations.model.js @@ -25,11 +25,10 @@ class Organization extends Model { static async getOrgsMap() { const organizations = await Organization.findAll({ attributes: ['orgUid', 'name', 'icon', 'isHome', 'subscribed'], - raw: true, }); return organizations.reduce((map, current) => { - map[current.orgUid] = current; + map[current.orgUid] = current.dataValues; return map; }, {}); }