mirror of
https://github.com/Kaelio/ktx.git
synced 2026-07-04 10:52:13 +02:00
test: close unified ingest v1 expectations
This commit is contained in:
parent
23dba892cd
commit
1180fffdeb
9 changed files with 48 additions and 20 deletions
|
|
@ -109,7 +109,10 @@ const queryHistoryDialectByDriver = new Map<string, HistoricSqlDialect>([
|
|||
]);
|
||||
|
||||
function storedQueryHistory(connection: KtxProjectConnectionConfig): Record<string, unknown> {
|
||||
const value = connection.context?.queryHistory;
|
||||
const context = connection.context;
|
||||
const contextRecord =
|
||||
context && typeof context === 'object' && !Array.isArray(context) ? (context as Record<string, unknown>) : {};
|
||||
const value = contextRecord.queryHistory;
|
||||
return typeof value === 'object' && value !== null && !Array.isArray(value) ? (value as Record<string, unknown>) : {};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue