From b8b3d5fca4fafdcb0bc6467e314443b17b48f4d9 Mon Sep 17 00:00:00 2001 From: kenneth Date: Sat, 21 Mar 2026 22:45:51 +0000 Subject: [PATCH] docs: fix stale jsdoc on provider failure behavior Co-authored-by: Ona --- apps/aelis-backend/src/session/user-session-manager.ts | 2 +- apps/aelis-backend/src/session/user-session.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/aelis-backend/src/session/user-session-manager.ts b/apps/aelis-backend/src/session/user-session-manager.ts index 5016811..ee4be3a 100644 --- a/apps/aelis-backend/src/session/user-session-manager.ts +++ b/apps/aelis-backend/src/session/user-session-manager.ts @@ -65,7 +65,7 @@ export class UserSessionManager { * Replaces a provider and updates all active sessions. * The new provider must have the same sourceId as an existing one. * For each active session, re-resolves the source via session.refreshSource. - * If the provider fails for a user, the old source is removed from that session. + * If the provider fails for a user, the existing source is kept. */ async replaceProvider(provider: FeedSourceProvider): Promise { if (!this.providers.has(provider.sourceId)) { diff --git a/apps/aelis-backend/src/session/user-session.ts b/apps/aelis-backend/src/session/user-session.ts index 908f501..a09a6ee 100644 --- a/apps/aelis-backend/src/session/user-session.ts +++ b/apps/aelis-backend/src/session/user-session.ts @@ -73,7 +73,7 @@ export class UserSession { /** * Re-resolves a source from its provider using this session's userId. * The source must already be registered. Throws if it isn't. - * If the provider fails, the source is removed from the session. + * If the provider fails, the existing source is kept. */ async refreshSource(provider: FeedSourceProvider): Promise { if (!this.sources.has(provider.sourceId)) {