This commit is contained in:
2026-04-08 02:21:55 +02:00
parent da0411f5d1
commit 30784fa756
@@ -62,13 +62,12 @@ public class HomeBoxConnectionProvider implements ConnectionProvider {
@Override @Override
public void updateToRepository(ConnectionEntity existing, ConnectionResponse response) { public void updateToRepository(ConnectionEntity existing, ConnectionResponse response) {
if (existing instanceof HomeboxEntity hbE) { if (existing instanceof HomeboxEntity hbE) {
hbE.setToken(response.token()); hbE.setToken(response.token());
hbE.setExpiresAt(response.expiresAt()); hbE.setExpiresAt(response.expiresAt());
hbE.setAttachmentToken(response.getExtraVar("attachmentToken")); hbE.setAttachmentToken(response.getExtraVar("attachmentToken"));
cRepository.save(hbE); cRepository.save(hbE);
} }
} }