Revert "update: search rootId"

This reverts commit 9b9c9cc382.
This commit is contained in:
AdisakKanthawilang 2024-10-22 17:17:39 +07:00
parent 9b9c9cc382
commit 02768bddb7

View file

@ -26,7 +26,6 @@ export class LogController extends Controller {
body: {
size: number;
search?: string;
rootId?: string;
multiSearch?: string[];
searchAfter?: number;
date?: Date;
@ -55,7 +54,6 @@ export class LogController extends Controller {
bool: {
must: [
...(systemName ? [{ match: { systemName } }] : []),
...(!!body.rootId ? [{ match: { rootId: body.rootId } }] : []),
...(body.search
? [
{
@ -67,7 +65,6 @@ export class LogController extends Controller {
"host",
"responseCode",
"output",
"rootId",
].map((v) => ({
wildcard: { [v]: "*" + body.search + "*" },
})),