Skip to content

Commit

Permalink
Fix custom router listing.
Browse files Browse the repository at this point in the history
Very, very silly filter on the VPC ID in there...
  • Loading branch information
FelixMcFelix committed May 28, 2024
1 parent 08c982e commit e886d16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nexus/db-queries/src/db/datastore/vpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1496,8 +1496,9 @@ impl DataStore {
.eq(subnet_dsl::custom_router_id)),
)
.filter(subnet_dsl::time_deleted.is_null())
.filter(subnet_dsl::vpc_id.is_null())
.filter(subnet_dsl::vpc_id.eq(vpc_id))
.filter(router_dsl::time_deleted.is_null())
.filter(router_dsl::vpc_id.eq(vpc_id))
.select((VpcSubnet::as_select(), VpcRouter::as_select()))
.load_async(&*self.pool_connection_authorized(opctx).await?)
.await
Expand Down

0 comments on commit e886d16

Please sign in to comment.