From cb275b4dedd71ba772c1cec4947d85b1a4e0e9e5 Mon Sep 17 00:00:00 2001 From: Ronald Luitwieler Date: Tue, 12 Dec 2023 09:51:25 +0100 Subject: [PATCH] format ts code --- lib/rag-engines/opensearch-vector/index.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/rag-engines/opensearch-vector/index.ts b/lib/rag-engines/opensearch-vector/index.ts index 7c5109977..d211229a4 100644 --- a/lib/rag-engines/opensearch-vector/index.ts +++ b/lib/rag-engines/opensearch-vector/index.ts @@ -46,16 +46,16 @@ export class OpenSearchVector extends Construct { let seen = new Set(); const cfnVpcEndpoint = new oss.CfnVpcEndpoint(this, "VpcEndpoint", { name: Utils.getName(props.config, "genaichatbot-vpce"), - subnetIds: props.shared.vpc.filter(obj => { - if (seen.has(obj.availabilityZone)) { + subnetIds: props.shared.vpc + .filter((obj) => { + if (seen.has(obj.availabilityZone)) { return false; - } else { + } else { seen.add(obj.availabilityZone); return true; - } - }).privateSubnets.map( - (subnet) => subnet.subnetId - ), + } + }) + .privateSubnets.map((subnet) => subnet.subnetId), vpcId: props.shared.vpc.vpcId, securityGroupIds: [sg.securityGroupId], });