Skip to content

Commit 5cd34ff

Browse files
authored
fix: revert localstack detection when initializing Postgres connector (#956)
1 parent 570a7e0 commit 5cd34ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lambda-code/nagware/lib/templates.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function getTemplateInfo(formID: string): Promise<TemplateInfo> {
1414
const postgresConnector =
1515
await PostgresConnector.defaultUsingPostgresConnectionUrlFromAwsSecret(
1616
process.env.DB_URL ?? "",
17-
Boolean(process.env.LOCALSTACK)
17+
process.env.LOCALSTACK === "true"
1818
);
1919

2020
// Due to Localstack limitations we have to define aliases for fields that have the same name

lambda-code/reliability/lib/templates.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function getTemplateInfo(formID: string): Promise<TemplateInfo | nu
1515
const postgresConnector =
1616
await PostgresConnector.defaultUsingPostgresConnectionUrlFromAwsSecret(
1717
process.env.DB_URL ?? "",
18-
Boolean(process.env.LOCALSTACK)
18+
process.env.LOCALSTACK === "true"
1919
);
2020

2121
const templates = await postgresConnector.executeSqlStatement()<

0 commit comments

Comments
 (0)