From 16aea6fb893ee80219c0535782516c8470d20831 Mon Sep 17 00:00:00 2001 From: Andrew Plummer Date: Wed, 28 Feb 2024 14:37:19 +0000 Subject: [PATCH] Always connect to the postgres database --- handler/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/main.ts b/handler/main.ts index 9c6dc6d..075cd00 100644 --- a/handler/main.ts +++ b/handler/main.ts @@ -243,7 +243,7 @@ const handleCreate = async (event: CreateEvent): Promise => { dbSecretArn: event.ResourceProperties.userSecretArn, dbClusterHostname: event.ResourceProperties.dbClusterHostname, dbClusterPort: event.ResourceProperties.dbClusterPort, - databaseName: event.ResourceProperties.databaseName, + databaseName: 'postgres', }); const userCredentials = await userClientManager.getCredentials(); @@ -325,7 +325,7 @@ const handleUpdate = async (event: UpdateEvent): Promise => { dbSecretArn: event.ResourceProperties.userSecretArn, dbClusterHostname: event.ResourceProperties.dbClusterHostname, dbClusterPort: event.ResourceProperties.dbClusterPort, - databaseName: event.ResourceProperties.databaseName, + databaseName: 'postgres', }); const userCredentials = await userClient.getCredentials();