import Usecase from "../common/Usecase" ; import { IBaseBundle } from "../entities/Bundle" ; export default class GetBundles extends Usecase { async exec ( ) { await this . authorizer . ensureCanGetBundles ( ) ; return this . storages . bundles . findMany ( ) ; } }