mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-22 18:11:17 +00:00
docs: fix stale jsdoc on provider failure behavior
Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -65,7 +65,7 @@ export class UserSessionManager {
|
|||||||
* Replaces a provider and updates all active sessions.
|
* Replaces a provider and updates all active sessions.
|
||||||
* The new provider must have the same sourceId as an existing one.
|
* The new provider must have the same sourceId as an existing one.
|
||||||
* For each active session, re-resolves the source via session.refreshSource.
|
* 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> {
|
async replaceProvider(provider: FeedSourceProvider): Promise<void> {
|
||||||
if (!this.providers.has(provider.sourceId)) {
|
if (!this.providers.has(provider.sourceId)) {
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export class UserSession {
|
|||||||
/**
|
/**
|
||||||
* Re-resolves a source from its provider using this session's userId.
|
* Re-resolves a source from its provider using this session's userId.
|
||||||
* The source must already be registered. Throws if it isn't.
|
* 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> {
|
async refreshSource(provider: FeedSourceProvider): Promise<void> {
|
||||||
if (!this.sources.has(provider.sourceId)) {
|
if (!this.sources.has(provider.sourceId)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user