Skip to content

Commit

Permalink
format ts code
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewise authored and bigadsoleiman committed Jan 9, 2024
1 parent a27839b commit cb275b4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/rag-engines/opensearch-vector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ export class OpenSearchVector extends Construct {
let seen = new Set<string>();
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],
});
Expand Down

0 comments on commit cb275b4

Please sign in to comment.