From 02768bddb776637e3cd171e68178fe9eeaa43d94 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 22 Oct 2024 17:17:39 +0700 Subject: [PATCH] Revert "update: search rootId" This reverts commit 9b9c9cc382e2bff12b4fa67390898a438c3bb832. --- src/controllers/log-controller.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/controllers/log-controller.ts b/src/controllers/log-controller.ts index 164c391..93f100b 100644 --- a/src/controllers/log-controller.ts +++ b/src/controllers/log-controller.ts @@ -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 + "*" }, })),