Rename getQueryById to getRemoteQueryById

This commit is contained in:
Koen Vlaswinkel
2022-09-22 09:30:07 +02:00
parent 0133cd7734
commit 06d22841cf
2 changed files with 2 additions and 2 deletions

View File

@@ -680,7 +680,7 @@ export class QueryHistoryManager extends DisposableObject {
return this.treeDataProvider.getCurrent();
}
getQueryById(queryId: string): RemoteQueryHistoryItem | undefined {
getRemoteQueryById(queryId: string): RemoteQueryHistoryItem | undefined {
return this.treeDataProvider.allHistory.find(i => i.t === 'remote' && i.queryId === queryId) as RemoteQueryHistoryItem;
}

View File

@@ -29,7 +29,7 @@ export async function exportRemoteQueryResults(
): Promise<void> {
let queryHistoryItem: RemoteQueryHistoryItem;
if (queryId) {
const query = queryHistoryManager.getQueryById(queryId);
const query = queryHistoryManager.getRemoteQueryById(queryId);
if (!query) {
void logger.log(`Could not find query with id ${queryId}`);
throw new Error('There was an error when trying to retrieve variant analysis information');