From 9bbf2fd098ed745627342852a90acff331d8cb9f Mon Sep 17 00:00:00 2001 From: kasun Date: Sat, 27 Jun 2026 01:07:50 +0200 Subject: [PATCH] format --- .../java/com/vaessl/app/connection/ConnectionService.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/com/vaessl/app/connection/ConnectionService.java b/backend/src/main/java/com/vaessl/app/connection/ConnectionService.java index 93e341a..2a1ecb3 100644 --- a/backend/src/main/java/com/vaessl/app/connection/ConnectionService.java +++ b/backend/src/main/java/com/vaessl/app/connection/ConnectionService.java @@ -52,7 +52,8 @@ public class ConnectionService { return new LoginResult(saved.getId(), response.expiresAt()); } - public ConnectionStatusResponse getConnectionStatus(ServiceType serviceType, Long connectionId) { + public ConnectionStatusResponse getConnectionStatus(ServiceType serviceType, + Long connectionId) { ConnectionEntity entity = cRepository.findById(connectionId).orElse(null); if (entity == null) return null; @@ -61,7 +62,7 @@ public class ConnectionService { Instant expiresAt = (provider != null) ? provider.getTokenExpiry(entity) : null; boolean connected = expiresAt == null || expiresAt.isAfter(Instant.now()); - return new ConnectionStatusResponse(serviceType.name(), entity.getAppUrl(), entity.getUsername(), - expiresAt, connected); + return new ConnectionStatusResponse(serviceType.name(), entity.getAppUrl(), + entity.getUsername(), expiresAt, connected); } }