improving UX for the onboarding experience

This commit is contained in:
Vladyslav Matsiiako
2023-05-15 16:33:11 -07:00
parent d32c5fb869
commit 89a89af4e6
8 changed files with 28 additions and 19 deletions
@@ -19,7 +19,8 @@ export const getOrganizations = async (req: Request, res: Response) => {
try {
organizations = (
await MembershipOrg.find({
user: req.user._id
user: req.user._id,
status: ACCEPTED
}).populate('organization')
).map((m) => m.organization);
} catch (err) {