mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-24 19:01: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>
12 lines
364 B
TypeScript
12 lines
364 B
TypeScript
import { LocationSource } from "@aelis/source-location"
|
|
|
|
import type { FeedSourceProvider } from "../session/feed-source-provider.ts"
|
|
|
|
export class LocationSourceProvider implements FeedSourceProvider {
|
|
readonly sourceId = "aelis.location"
|
|
|
|
async feedSourceForUser(_userId: string, _config: unknown): Promise<LocationSource> {
|
|
return new LocationSource()
|
|
}
|
|
}
|