Skip to content

Commit

Permalink
Merge pull request #222 from Chia-Network/fix/home-org-response
Browse files Browse the repository at this point in the history
fix: return resolved org info instead of raw
  • Loading branch information
MichaelTaylor3D authored Jan 27, 2022
2 parents 8783f64 + 94a6a29 commit 534e01f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/models/organizations/organizations.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}, {});
}
Expand Down

0 comments on commit 534e01f

Please sign in to comment.