Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Nov 7, 2024
1 parent cbc39c7 commit 14ffc8e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/torii/core/src/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ impl Sql {
let mut model_idx = 0_i64;
self.build_register_queries_recursive(
selector,
upgrade_diff.as_ref().unwrap_or(&model),
model,
vec![namespaced_name.clone()],
&mut model_idx,
block_timestamp,
Expand Down Expand Up @@ -834,7 +834,11 @@ impl Sql {
Ty::Enum(e) => {
if e.options.iter().all(
|o| {
if let Ty::Tuple(t) = &o.ty { t.is_empty() } else { false }
if let Ty::Tuple(t) = &o.ty {
t.is_empty()
} else {
false
}
},
) {
return Ok(());
Expand Down

0 comments on commit 14ffc8e

Please sign in to comment.