Skip to content

Commit b01771f

Browse files
clean
1 parent addbae2 commit b01771f

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

packages/blocks/aws-athena/src/lib/actions/query-athena-action.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,14 @@ export const runAthenaQueryAction = createAction({
4545
}
4646

4747
try {
48-
const authProp = auth as {
49-
accessKeyId: string;
50-
secretAccessKey: string;
51-
defaultRegion: string;
52-
};
5348
const credentials = await getCredentialsForAccount(
54-
authProp,
49+
auth,
5550
account?.['accounts'],
5651
);
5752

5853
const databases = await listAthenaDatabases(
5954
credentials,
60-
(region as string | undefined) ?? authProp.defaultRegion,
55+
(region as string | undefined) ?? auth.defaultRegion,
6156
);
6257

6358
return {

0 commit comments

Comments
 (0)