Proper coffee syntax

This commit is contained in:
Alberto Fernández Capel 2018-06-07 16:49:17 +01:00
parent a3bb99d755
commit 85f4a31585

View file

@ -56,9 +56,9 @@ module.exports = LimitationsManager =
callback err, subscriptions.length > 0, subscriptions callback err, subscriptions.length > 0, subscriptions
teamHasReachedMemberLimit: (subscription) -> teamHasReachedMemberLimit: (subscription) ->
currentTotal = (subscription.member_ids or []).length currentTotal = (subscription.member_ids or []).length +
+ (subscription.teamInvites or []).length (subscription.teamInvites or []).length +
+ (subscription.invited_emails or []).length (subscription.invited_emails or []).length
return currentTotal >= subscription.membersLimit return currentTotal >= subscription.membersLimit