From 33380f63f68cb035ebff14d6163989b5e777778f Mon Sep 17 00:00:00 2001 From: Alys Date: Wed, 12 Apr 2017 20:19:37 +1000 Subject: [PATCH] add comment to warn about keeping INVITES_LIMIT low If INVITES_LIMIT is allowed to be greater than MAX_EMAIL_INVITES_BY_USER then the inviter can send more than MAX_EMAIL_INVITES_BY_USER invitations at once. --- website/server/models/group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/server/models/group.js b/website/server/models/group.js index 24002432847..2675424d0e8 100644 --- a/website/server/models/group.js +++ b/website/server/models/group.js @@ -35,7 +35,7 @@ import stripePayments from '../libs/stripePayments'; const questScrolls = shared.content.quests; const Schema = mongoose.Schema; -export const INVITES_LIMIT = 100; +export const INVITES_LIMIT = 100; // must not be greater than MAX_EMAIL_INVITES_BY_USER export const TAVERN_ID = shared.TAVERN_ID; const NO_CHAT_NOTIFICATIONS = [TAVERN_ID];