Skip to content

Commit

Permalink
fix: type mismatch after merge (aws-amplify#7490)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhockett authored and cjihrig-aws committed Jul 12, 2021
1 parent 9845453 commit 10f34b9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ const aws = require('./aws');
import { $TSAny, $TSContext } from 'amplify-cli-core';
import { Lambda as AwsSdkLambda } from 'aws-sdk';
import { LayerVersionsListItem, ListLayerVersionsRequest, ListLayerVersionsResponse } from 'aws-sdk/clients/lambda';
import { loadConfiguration } from '../configuration-manager';
import { AwsSdkConfig } from '../utils/auth-types';
import { AwsSecrets, loadConfiguration } from '../configuration-manager';
import { fileLogger } from '../utils/aws-logger';
import { pagedAWSCall } from './paged-call';

Expand All @@ -14,7 +13,7 @@ export class Lambda {

constructor(private readonly context: $TSContext, options = {}) {
return (async () => {
let cred: AwsSdkConfig;
let cred: AwsSecrets;
try {
cred = await loadConfiguration(context);
} catch (e) {
Expand Down

0 comments on commit 10f34b9

Please sign in to comment.