Skip to content

Commit

Permalink
Always connect to the postgres database
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog committed Feb 28, 2024
1 parent a9ff7ac commit 16aea6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ const handleCreate = async (event: CreateEvent): Promise<Response> => {
dbSecretArn: event.ResourceProperties.userSecretArn,
dbClusterHostname: event.ResourceProperties.dbClusterHostname,
dbClusterPort: event.ResourceProperties.dbClusterPort,
databaseName: event.ResourceProperties.databaseName,
databaseName: 'postgres',
});

const userCredentials = await userClientManager.getCredentials();
Expand Down Expand Up @@ -325,7 +325,7 @@ const handleUpdate = async (event: UpdateEvent): Promise<Response> => {
dbSecretArn: event.ResourceProperties.userSecretArn,
dbClusterHostname: event.ResourceProperties.dbClusterHostname,
dbClusterPort: event.ResourceProperties.dbClusterPort,
databaseName: event.ResourceProperties.databaseName,
databaseName: 'postgres',
});

const userCredentials = await userClient.getCredentials();
Expand Down

0 comments on commit 16aea6f

Please sign in to comment.