Bump max sticker count to 201

This commit is contained in:
Moxie Marlinspike 2019-12-18 17:08:51 -08:00
parent c8979940a8
commit 886db1a2c3
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class StickerController {
@Produces(MediaType.APPLICATION_JSON)
@Path("/pack/form/{count}")
public StickerPackFormUploadAttributes getStickersForm(@Auth Account account,
@PathParam("count") @Min(1) @Max(50) int stickerCount)
@PathParam("count") @Min(1) @Max(201) int stickerCount)
throws RateLimitExceededException
{
rateLimiters.getStickerPackLimiter().validate(account.getNumber());

View File

@ -84,7 +84,7 @@ public class StickerControllerTest {
@Test
public void testCreateTooLargePack() throws Exception {
Response response = resources.getJerseyTest()
.target("/v1/sticker/pack/form/51")
.target("/v1/sticker/pack/form/202")
.request()
.header("Authorization", AuthHelper.getAuthHeader(AuthHelper.VALID_NUMBER, AuthHelper.VALID_PASSWORD))
.get();