mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-18 20:05:18 +01:00
Fix credential age calculation
This commit is contained in:
committed by
Chris Eager
parent
61ab765391
commit
159e1f13f0
@@ -142,7 +142,7 @@ public class SecureValueRecovery2Controller {
|
||||
.baseUnit("days")
|
||||
.tags(Tags.of(UserAgentTagUtil.getPlatformTag(userAgent), Tag.of("valid", Boolean.toString(info.valid()))))
|
||||
.register(Metrics.globalRegistry)
|
||||
.record(Duration.between(Instant.ofEpochMilli(info.timestamp()), Instant.now()).toDays()));
|
||||
.record(Duration.between(Instant.ofEpochSecond(info.timestamp()), Instant.now()).toDays()));
|
||||
|
||||
return new AuthCheckResponseV2(credentials.stream().collect(Collectors.toMap(
|
||||
ExternalServiceCredentialsSelector.CredentialInfo::token,
|
||||
|
||||
Reference in New Issue
Block a user