Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 29, 2024
1 parent abc4905 commit bb3101b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions query-connector/src/app/database-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ function logRejectedPromiseReasons<T>(
});
}

/**
*
* @param input
*/
export async function insertUserQuery(input: UserQueryInput) {
const { sql, values } = generateUserQueryInsertionSql(input);
const insertUserQueryPromise = dbClient.query(sql, values);
Expand Down
9 changes: 9 additions & 0 deletions query-connector/src/app/query-building.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ const DEFAULT_TIME_WINDOW = {
timeWindowUnit: "day",
};

/**
*
* @param input
*/
export function generateUserQueryInsertionSql(input: UserQueryInput) {
const id = randomUUID();
const dateCreated = new Date().toISOString();
Expand All @@ -38,6 +42,11 @@ export function generateUserQueryInsertionSql(input: UserQueryInput) {
return { sql: sql, values: values } as const;
}

/**
*
* @param input
* @param queryId
*/
export function generateUserQueryToValuesetInsertionSql(
input: UserQueryInput,
queryId: UUID,
Expand Down
3 changes: 3 additions & 0 deletions query-connector/src/app/queryBuilding/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import {
mapQueryRowsToConceptValueSets,
} from "../database-service";
type QueryBuilding = {};
/**
*
*/
export const QueryBuilding: React.FC<QueryBuilding> = ({}) => {
const [queryName, setQueryName] = useState<string>();

Expand Down

0 comments on commit bb3101b

Please sign in to comment.