From 4613ff14b6701b7687133bc45c2a1660c9e6b97b Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 22 Oct 2024 17:23:00 +0700 Subject: [PATCH] fix fuction revert --- src/controllers/log-controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/log-controller.ts b/src/controllers/log-controller.ts index 43ce6c3..c6a17b8 100644 --- a/src/controllers/log-controller.ts +++ b/src/controllers/log-controller.ts @@ -22,6 +22,7 @@ export class LogController extends Controller { @Get() async GET( @Query() size: number = 30, + @Query() rootId?: string, @Query() search?: string, @Query() searchAfter?: number, @Query() systemName?: string, @@ -49,6 +50,7 @@ export class LogController extends Controller { bool: { must: [ ...(systemName ? [{ match: { systemName } }] : []), + ...(rootId ? [{ match: { rootId } }] : []), ...(search ? [ { @@ -60,6 +62,7 @@ export class LogController extends Controller { "host", "responseCode", "output", + "rootId", ].map((v) => ({ wildcard: { [v]: "*" + search + "*" }, })),