15 lines
461 B
JavaScript
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;
|