Skip to content

Commit

Permalink
Issue #22: rename searchAfterNs to searchAfter
Browse files Browse the repository at this point in the history
  • Loading branch information
idrissneumann committed Nov 23, 2023
1 parent ecb52ac commit d66e50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export class QuickwitDataSource

private makeLogContextDataRequest = (row: LogRowModel, options?: LogRowContextOptions) => {
const direction = options?.direction || LogRowContextQueryDirection.Backward;
const searchAfterNs = row.dataFrame.fields.find((f) => f.name === 'sort')?.values.get(row.rowIndex) ?? [row.timeEpochNs]
const searchAfter = row.dataFrame.fields.find((f) => f.name === 'sort')?.values.get(row.rowIndex) ?? [row.timeEpochNs]

const logQuery: Logs = {
type: 'logs',
Expand All @@ -444,7 +444,7 @@ export class QuickwitDataSource
// Sorting of results in the context query
sortDirection: direction === LogRowContextQueryDirection.Backward ? 'desc' : 'asc',
// Used to get the next log lines before/after the current log line using sort field of selected log line
searchAfter: searchAfterNs,
searchAfter: searchAfter,
},
};

Expand Down

0 comments on commit d66e50d

Please sign in to comment.