Skip to content

Commit

Permalink
made changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwizsinha committed Feb 13, 2020
1 parent 5a36fc8 commit 15913f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/invites/server/functions/useInviteToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const useInviteToken = (userId, token) => {
Users.updateInviteToken(user._id, token);

const subscription = Subscriptions.findOneByRoomIdAndUserId(room._id, user._id, { fields: { _id: 1 } });
const userInRoom = subscription != null;
const userInRoom = !!subscription;
if (!userInRoom) {
Invites.increaseUsageById(inviteData._id);
}
Expand Down

0 comments on commit 15913f2

Please sign in to comment.