Files
Autonomous-Bug-Explorer/dist/modules/visual-regression/application/queries/ListComparisonsQuery.js
debian 94defee1f8 fase(20): visual regression refactor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-08 06:02:37 -04:00

15 lines
461 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListComparisonsQuery = void 0;
const Result_1 = require("../../../../shared/domain/Result");
class ListComparisonsQuery {
constructor(repo) {
this.repo = repo;
}
async execute(filters) {
const comparisons = await this.repo.findAll(filters);
return (0, Result_1.Ok)(comparisons);
}
}
exports.ListComparisonsQuery = ListComparisonsQuery;