fix fuction revert
This commit is contained in:
parent
25361338c9
commit
4613ff14b6
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ export class LogController extends Controller {
|
||||||
@Get()
|
@Get()
|
||||||
async GET(
|
async GET(
|
||||||
@Query() size: number = 30,
|
@Query() size: number = 30,
|
||||||
|
@Query() rootId?: string,
|
||||||
@Query() search?: string,
|
@Query() search?: string,
|
||||||
@Query() searchAfter?: number,
|
@Query() searchAfter?: number,
|
||||||
@Query() systemName?: string,
|
@Query() systemName?: string,
|
||||||
|
|
@ -49,6 +50,7 @@ export class LogController extends Controller {
|
||||||
bool: {
|
bool: {
|
||||||
must: [
|
must: [
|
||||||
...(systemName ? [{ match: { systemName } }] : []),
|
...(systemName ? [{ match: { systemName } }] : []),
|
||||||
|
...(rootId ? [{ match: { rootId } }] : []),
|
||||||
...(search
|
...(search
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
|
|
@ -60,6 +62,7 @@ export class LogController extends Controller {
|
||||||
"host",
|
"host",
|
||||||
"responseCode",
|
"responseCode",
|
||||||
"output",
|
"output",
|
||||||
|
"rootId",
|
||||||
].map((v) => ({
|
].map((v) => ({
|
||||||
wildcard: { [v]: "*" + search + "*" },
|
wildcard: { [v]: "*" + search + "*" },
|
||||||
})),
|
})),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue