Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: revert localstack detection when initializing Postgres connector #956

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lambda-code/nagware/lib/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function getTemplateInfo(formID: string): Promise<TemplateInfo> {
const postgresConnector =
await PostgresConnector.defaultUsingPostgresConnectionUrlFromAwsSecret(
process.env.DB_URL ?? "",
Boolean(process.env.LOCALSTACK)
process.env.LOCALSTACK === "true"
);

// Due to Localstack limitations we have to define aliases for fields that have the same name
Expand Down
2 changes: 1 addition & 1 deletion lambda-code/reliability/lib/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function getTemplateInfo(formID: string): Promise<TemplateInfo | nu
const postgresConnector =
await PostgresConnector.defaultUsingPostgresConnectionUrlFromAwsSecret(
process.env.DB_URL ?? "",
Boolean(process.env.LOCALSTACK)
process.env.LOCALSTACK === "true"
);

const templates = await postgresConnector.executeSqlStatement()<
Expand Down
Loading