Skip to content

Commit

Permalink
fix(torii-grpc): building sql query for array idx (#2593)
Browse files Browse the repository at this point in the history
* fix(torii-grpc): building sql query for array idx

* chore
  • Loading branch information
Larkooo authored Oct 29, 2024
1 parent 7addea8 commit 1914a4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/torii/core/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,9 @@ pub fn build_sql_query(

let join_clause = tables
.iter()
.map(|table| {
if table.parent_table.is_none() {
.enumerate()
.map(|(i, table)| {
if i == 0 {
format!(
" JOIN [{}] ON {entities_table}.id = [{}].{entity_relation_column}",
table.table_name, table.table_name
Expand Down

0 comments on commit 1914a4a

Please sign in to comment.