diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ArchiveController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ArchiveController.java index 5fa3058fd..5f90ddbbd 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ArchiveController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ArchiveController.java @@ -141,8 +141,8 @@ public class ArchiveController { @ApiResponse(responseCode = "429", description = "Rate limited.") public CompletionStage getBackupZKCredentials( @Auth AuthenticatedAccount auth, - @NotNull @QueryParam("redemptionStartSeconds") Integer startSeconds, - @NotNull @QueryParam("redemptionEndSeconds") Integer endSeconds) { + @NotNull @QueryParam("redemptionStartSeconds") Long startSeconds, + @NotNull @QueryParam("redemptionEndSeconds") Long endSeconds) { return this.backupAuthManager.getBackupAuthCredentials( auth.getAccount(), diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/CertificateController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/CertificateController.java index d4568216f..5be299183 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/CertificateController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/CertificateController.java @@ -89,8 +89,8 @@ public class CertificateController { @Path("/auth/group") public GroupCredentials getGroupAuthenticationCredentials( @Auth AuthenticatedAccount auth, - @QueryParam("redemptionStartSeconds") int startSeconds, - @QueryParam("redemptionEndSeconds") int endSeconds, + @QueryParam("redemptionStartSeconds") long startSeconds, + @QueryParam("redemptionEndSeconds") long endSeconds, @QueryParam("pniAsServiceId") boolean pniAsServiceId) { final Instant startOfDay = clock.instant().truncatedTo(ChronoUnit.DAYS);