fix fuction revert

This commit is contained in:
AdisakKanthawilang 2024-10-22 17:23:00 +07:00
parent 25361338c9
commit 4613ff14b6

View file

@ -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 + "*" },
})),