import Usecase from "../common/Usecase" ; import { IBundle } from "../entities/Bundle" ; export default class GetBundlesByNameAndTag extends Usecase { async exec ( name , tag ) { await this . authorizer . ensureCanGetBundles ( ) ; return this . storages . bundles . findManyByNameAndTag ( name , tag ) ; } }