Move ALLOWED_QUERY_HISTORY_VERSIONS const to store

This commit is contained in:
Charis Kyriakou
2023-04-13 07:26:53 +00:00
parent 6581988d22
commit d1366a14ca
2 changed files with 5 additions and 9 deletions

View File

@@ -4,8 +4,6 @@
import { QueryHistoryLocalQueryDto } from "./query-history-local-query-dto";
import { QueryHistoryVariantAnalysisDto } from "./query-history-variant-analysis-dto";
export const ALLOWED_QUERY_HISTORY_VERSIONS = [1, 2];
export interface QueryHistoryDto {
version: number;
queries: QueryHistoryItemDto[];

View File

@@ -10,13 +10,11 @@ import {
} from "../../pure/helpers-pure";
import { QueryHistoryInfo } from "../query-history-info";
import { redactableError } from "../../pure/errors";
import {
ALLOWED_QUERY_HISTORY_VERSIONS,
QueryHistoryDto,
QueryHistoryItemDto,
} from "./query-history-dto";
import { mapQueryHistoryToDomainModel } from "./data-mapper";
import { mapQueryHistoryToDto } from "./domain-mapper";
import { QueryHistoryDto, QueryHistoryItemDto } from "./query-history-dto";
import { mapQueryHistoryToDomainModel } from "./query-history-dto-mapper";
import { mapQueryHistoryToDto } from "./query-history-domain-mapper";
const ALLOWED_QUERY_HISTORY_VERSIONS = [1, 2];
export async function readQueryHistoryFromFile(
fsPath: string,