fase(20): visual regression refactor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
14
dist/modules/visual-regression/application/queries/ListComparisonsQuery.js
vendored
Normal file
14
dist/modules/visual-regression/application/queries/ListComparisonsQuery.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"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;
|
||||
Reference in New Issue
Block a user