Skip to content

Commit

Permalink
Merge pull request #182 from mbonig/feat/adhoc
Browse files Browse the repository at this point in the history
changing handler to index.ts
  • Loading branch information
mbonig authored Jan 13, 2022
2 parents 955a4a1 + 512c85c commit cebbc2c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DatabaseScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class DatabaseScript extends Construct implements IConnectable {

private createLambda(id: string, props: DatabaseScriptProps, vpc: IVpc, secret: ISecret, handler?: string) {
const handlerFunction = this.ensureLambda(`${props.databaseInstance?.node.id ?? props.secret?.node.id}-${id}`, {
entry: path.join(__dirname, 'handlers', 'handlers.ts'),
entry: path.join(__dirname, 'handlers', 'index.ts'),
depsLockFilePath: path.join(__dirname, 'handlers', 'package-lock.json'),
handler: handler ?? 'handler',
runtime: aws_lambda.Runtime.NODEJS_12_X,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/script-runner.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getProvider } from '../src/handlers/handlers';
import { getProvider } from '../src/handlers/index';
import { MsSqlProvider } from '../src/handlers/mssql-provider';
import { MySqlProvider } from '../src/handlers/mysql-provider';
import { PostgresSqlProvider } from '../src/handlers/postgres-provider';
Expand Down

0 comments on commit cebbc2c

Please sign in to comment.