Files
aris/apps/aelis-backend/src/weather/provider.ts

16 lines
468 B
TypeScript
Raw Normal View History

import { WeatherSource, type WeatherSourceOptions } from "@aelis/source-weatherkit"
import type { FeedSourceProvider } from "../session/feed-source-provider.ts"
export class WeatherSourceProvider implements FeedSourceProvider {
private readonly options: WeatherSourceOptions
constructor(options: WeatherSourceOptions) {
this.options = options
}
async feedSourceForUser(_userId: string): Promise<WeatherSource> {
return new WeatherSource(this.options)
}
}