12 lines
401 B
TypeScript
12 lines
401 B
TypeScript
|
import AppProjections from "./AppProjections";
|
||
|
import { UpdateDefinition } from "./projections/ApplicationUpdates";
|
||
|
|
||
|
export default class AppQueries {
|
||
|
constructor(private readonly projections: AppProjections) {}
|
||
|
|
||
|
pendingApplicationUpdates(appName?: string): UpdateDefinition[] {
|
||
|
// TODO: Implement filtering by appName
|
||
|
return this.projections.ApplicationUpdates.getPendingUpdates();
|
||
|
}
|
||
|
}
|