Use long instead of int for epoch seconds
This commit is contained in:
parent
51a825f25c
commit
78b2df2ecc
|
@ -141,8 +141,8 @@ public class ArchiveController {
|
||||||
@ApiResponse(responseCode = "429", description = "Rate limited.")
|
@ApiResponse(responseCode = "429", description = "Rate limited.")
|
||||||
public CompletionStage<BackupAuthCredentialsResponse> getBackupZKCredentials(
|
public CompletionStage<BackupAuthCredentialsResponse> getBackupZKCredentials(
|
||||||
@Auth AuthenticatedAccount auth,
|
@Auth AuthenticatedAccount auth,
|
||||||
@NotNull @QueryParam("redemptionStartSeconds") Integer startSeconds,
|
@NotNull @QueryParam("redemptionStartSeconds") Long startSeconds,
|
||||||
@NotNull @QueryParam("redemptionEndSeconds") Integer endSeconds) {
|
@NotNull @QueryParam("redemptionEndSeconds") Long endSeconds) {
|
||||||
|
|
||||||
return this.backupAuthManager.getBackupAuthCredentials(
|
return this.backupAuthManager.getBackupAuthCredentials(
|
||||||
auth.getAccount(),
|
auth.getAccount(),
|
||||||
|
|
|
@ -89,8 +89,8 @@ public class CertificateController {
|
||||||
@Path("/auth/group")
|
@Path("/auth/group")
|
||||||
public GroupCredentials getGroupAuthenticationCredentials(
|
public GroupCredentials getGroupAuthenticationCredentials(
|
||||||
@Auth AuthenticatedAccount auth,
|
@Auth AuthenticatedAccount auth,
|
||||||
@QueryParam("redemptionStartSeconds") int startSeconds,
|
@QueryParam("redemptionStartSeconds") long startSeconds,
|
||||||
@QueryParam("redemptionEndSeconds") int endSeconds,
|
@QueryParam("redemptionEndSeconds") long endSeconds,
|
||||||
@QueryParam("pniAsServiceId") boolean pniAsServiceId) {
|
@QueryParam("pniAsServiceId") boolean pniAsServiceId) {
|
||||||
|
|
||||||
final Instant startOfDay = clock.instant().truncatedTo(ChronoUnit.DAYS);
|
final Instant startOfDay = clock.instant().truncatedTo(ChronoUnit.DAYS);
|
||||||
|
|
Loading…
Reference in New Issue