mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-24 02:51:17 +00:00
UserSessionManager now queries the user_sources table for enabled sources before calling any provider. Providers receive the per-user JSON config directly instead of querying the DB themselves, removing their db dependency and eliminating redundant round-trips. Co-authored-by: Ona <no-reply@ona.com>
15 lines
383 B
TypeScript
15 lines
383 B
TypeScript
/**
|
|
* Thrown when an operation targets a user source that doesn't exist.
|
|
*/
|
|
export class SourceNotFoundError extends Error {
|
|
readonly sourceId: string
|
|
readonly userId: string
|
|
|
|
constructor(sourceId: string, userId: string) {
|
|
super(`Source "${sourceId}" not found for user "${userId}"`)
|
|
this.name = "SourceNotFoundError"
|
|
this.sourceId = sourceId
|
|
this.userId = userId
|
|
}
|
|
}
|