docs: fix stale jsdoc on provider failure behavior

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-03-21 22:45:51 +00:00
parent b0551cb78a
commit b8b3d5fca4
2 changed files with 2 additions and 2 deletions

View File

@@ -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<void> {
if (!this.providers.has(provider.sourceId)) {

View File

@@ -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<void> {
if (!this.sources.has(provider.sourceId)) {