Skip to content

Commit

Permalink
fix(backend): resolved workspace membership invite failure
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilmhdh committed Dec 27, 2022
1 parent 752a2a9 commit c28d857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/helpers/membership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const validateMembership = async ({
membership = await Membership.findOne({
user: userId,
workspace: workspaceId
});
}).populate("workspace");

if (!membership) throw new Error('Failed to find membership');

Expand Down

0 comments on commit c28d857

Please sign in to comment.