Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 94ae9f2

Browse files
author
Max Stoiber
committed
Rate limit email invites
1 parent b183a1a commit 94ae9f2

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"graphql-date": "^1.0.3",
5555
"graphql-depth-limit": "^1.1.0",
5656
"graphql-log": "^0.1.3",
57-
"graphql-rate-limit": "^1.2.3",
57+
"graphql-rate-limit": "^1.2.4",
5858
"graphql-tools": "^4.0.4",
5959
"helmet": "^3.15.1",
6060
"highlight.js": "^9.14.2",

api/schema.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const Root = /* GraphQL */ `
7373
window: Int
7474
message: String
7575
identityArgs: [String]
76+
arrayLengthField: String
7677
) on FIELD_DEFINITION
7778
7879
# The dummy queries and mutations are necessary because

api/types/Community.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ const Community = /* GraphQL */ `
311311
importSlackMembers(input: ImportSlackMembersInput!): Boolean
312312
@deprecated(reason: "Importing slack members is deprecated")
313313
sendEmailInvites(input: EmailInvitesInput!): Boolean
314+
@rateLimit(max: 5000, window: "1w", arrayLengthField: "input.contacts")
314315
pinThread(threadId: ID!, communityId: ID!, value: String): Community
315316
upgradeCommunity(input: UpgradeCommunityInput!): Community
316317
@deprecated(

api/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4631,10 +4631,10 @@ graphql-log@^0.1.3:
46314631
deep-for-each "^1.0.6"
46324632
is-function "^1.0.1"
46334633

4634-
graphql-rate-limit@^1.2.3:
4635-
version "1.2.3"
4636-
resolved "https://registry.yarnpkg.com/graphql-rate-limit/-/graphql-rate-limit-1.2.3.tgz#33a98062bc251ba78eb5e74a8b7b08b1aac596c7"
4637-
integrity sha512-nhVYmEC/r1uhmCaSdjgOTNuBBbNcgYvdFRqTwWZ/+55tY/gTpEYTwH9ypayoERoqXleXwYsEROGQ9EEumA/uKA==
4634+
graphql-rate-limit@^1.2.4:
4635+
version "1.2.4"
4636+
resolved "https://registry.yarnpkg.com/graphql-rate-limit/-/graphql-rate-limit-1.2.4.tgz#8d28e475f77351f11cd09cc3f539adaba8dd208d"
4637+
integrity sha512-hddZL3aXPcpRpH57UFErrLzc0Wdjka570yRJSG5leG+iPXarHDf85Tl5oyj00PW0jVfml2X2K7ucOInsE8xYbw==
46384638
dependencies:
46394639
"@types/redis-mock" "^0.17.0"
46404640
graphql-tools "^4.0.3"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"graphql-date": "^1.0.3",
113113
"graphql-depth-limit": "^1.1.0",
114114
"graphql-log": "0.1.3",
115-
"graphql-rate-limit": "^1.2.2",
115+
"graphql-rate-limit": "^1.2.4",
116116
"graphql-tag": "^2.10.0",
117117
"graphql-tools": "^4.0.3",
118118
"helmet": "^3.14.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7197,10 +7197,10 @@ [email protected]:
71977197
deep-for-each "^1.0.6"
71987198
is-function "^1.0.1"
71997199

7200-
graphql-rate-limit@^1.2.2:
7201-
version "1.2.2"
7202-
resolved "https://registry.yarnpkg.com/graphql-rate-limit/-/graphql-rate-limit-1.2.2.tgz#4c97e7bcb5b8c8ca1ee67aaf194d22b88bba6f53"
7203-
integrity sha512-Osns7iZkKLAANZokorAKKIehQ3Wm03nXts2aBBy15r/QhKTNPxVwc71sXTn3IPJ7SzAfoARvPN1Jm3bmblHtiQ==
7200+
graphql-rate-limit@^1.2.4:
7201+
version "1.2.4"
7202+
resolved "https://registry.yarnpkg.com/graphql-rate-limit/-/graphql-rate-limit-1.2.4.tgz#8d28e475f77351f11cd09cc3f539adaba8dd208d"
7203+
integrity sha512-hddZL3aXPcpRpH57UFErrLzc0Wdjka570yRJSG5leG+iPXarHDf85Tl5oyj00PW0jVfml2X2K7ucOInsE8xYbw==
72047204
dependencies:
72057205
"@types/redis-mock" "^0.17.0"
72067206
graphql-tools "^4.0.3"

0 commit comments

Comments
 (0)