Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
“LAKSHMIRPILLAI” committed Oct 24, 2024
1 parent 6a524e0 commit 7cd4d5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
6 changes: 1 addition & 5 deletions super-mode-calculator/src/lambdas/calculate/parse.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import type {
QueryRowsResponse,
SimpleQueryRowsResponse,
} from '@google-cloud/bigquery';
import { RowMetadata } from '@google-cloud/bigquery/build/src/table';
import type { SimpleQueryRowsResponse } from '@google-cloud/bigquery';
import type { GetQueryResultsOutput } from 'aws-sdk/clients/athena';
import { z } from 'zod';
import { QueryReturnedInvalidDataError } from '../../lib/errors';
Expand Down
1 change: 0 additions & 1 deletion super-mode-calculator/src/lambdas/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
writeRowsForSuperMode,
} from '../lib/dynamoV2';
import { getSSMParam } from '../lib/ssm';
import { queryActiveArticles, writeRows } from './calculate/dynamo';
import type { QueryRow } from './calculate/parse';
import { parseResultFromBigQuery } from './calculate/parse';
import {
Expand Down
10 changes: 4 additions & 6 deletions super-mode-calculator/src/lib/bigquery.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { BigQuery, SimpleQueryRowsResponse } from '@google-cloud/bigquery';
import { subHours } from 'date-fns';
import type { SimpleQueryRowsResponse } from '@google-cloud/bigquery';
import { BigQuery } from '@google-cloud/bigquery';
import type {
BaseExternalAccountClient,
ExternalAccountClientOptions,
} from 'google-auth-library';
import { ExternalAccountClient } from 'google-auth-library';
import { BigQueryResult, buildQueryForSuperMode } from './build-query';
import { SUPER_MODE_WINDOW_IN_HOURS } from './constants';
import { toDateHourString, toDateString } from './date';
import { buildQueryForSuperMode } from './build-query';

export const buildAuthClient = (
clientConfig: string,
Expand All @@ -27,7 +25,7 @@ export const buildAuthClient = (
export const getDataForSuperModeCalculator = async (
authClient: BaseExternalAccountClient,
stage: 'CODE' | 'PROD',
) => {
): Promise<SimpleQueryRowsResponse> => {
const bigquery = new BigQuery({
projectId: `datatech-platform-${stage.toLowerCase()}`,
authClient,
Expand Down

0 comments on commit 7cd4d5c

Please sign in to comment.