🏗️ Refactored the searchIssue method

This commit is contained in:
2023-12-28 22:52:33 -05:00
parent c926758db6
commit 78e0e9f8ce
2 changed files with 148 additions and 82 deletions

View File

@@ -75,9 +75,9 @@ export default class SettingsService extends Service {
) => {
try {
console.log(ctx.params);
const { query, pagination } = ctx.params;
const { query, pagination, type } = ctx.params;
let eSQuery = {};
switch (ctx.params.type) {
switch (type) {
case "all":
Object.assign(eSQuery, {
match_all: {},