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) @Produces(MediaType.APPLICATION_JSON)
@Path("/pack/form/{count}") @Path("/pack/form/{count}")
public StickerPackFormUploadAttributes getStickersForm(@Auth Account account, public StickerPackFormUploadAttributes getStickersForm(@Auth Account account,
@PathParam("count") @Min(1) @Max(50) int stickerCount) @PathParam("count") @Min(1) @Max(201) int stickerCount)
throws RateLimitExceededException throws RateLimitExceededException
{ {
rateLimiters.getStickerPackLimiter().validate(account.getNumber()); rateLimiters.getStickerPackLimiter().validate(account.getNumber());

View File

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