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; }, {}); }