From 719f9b1f8167d082bcb7c5e96cb7963c8abccbbf Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 8 Oct 2024 13:33:38 -0400 Subject: [PATCH] Postgres: update arg name --- platform/src/components/aws/postgres.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/src/components/aws/postgres.ts b/platform/src/components/aws/postgres.ts index 9d1bb467c..0ea7e4fdd 100644 --- a/platform/src/components/aws/postgres.ts +++ b/platform/src/components/aws/postgres.ts @@ -41,11 +41,11 @@ export interface PostgresArgs { * @example * ```js * { - * databaseName: "acme" + * database: "acme" * } * ``` */ - databaseName?: Input; + database?: Input; /** * The type of instance to use for the database. Check out the [supported instance types](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.Types.html). * @@ -239,7 +239,7 @@ export class Postgres extends Component implements Link.Linkable { const engineVersion = output(args.version).apply((v) => v ?? "16.4"); const instanceType = output(args.instance).apply((v) => v ?? "t4g.micro"); const storage = normalizeStorage(); - const dbName = output(args.databaseName).apply( + const dbName = output(args.database).apply( (v) => v ?? $app.name.replaceAll("-", "_"), ); const vpc = normalizeVpc();