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)) {