query history with search

This commit is contained in:
Jan Prochazka
2021-06-03 15:52:46 +02:00
parent f6c8588573
commit 6362e2137b
3 changed files with 28 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ function readCore(reader, skip, limit, filter) {
if (!line && !line.trim()) return;
try {
const json = JSON.parse(line);
if (filterName(filter, json.sql)) {
if (filterName(filter, json.sql, json.database)) {
if (!skip || readed >= skip) {
res.push(json);
}