mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Proper coffee syntax
This commit is contained in:
parent
a3bb99d755
commit
85f4a31585
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue