Skip to content

Commit

Permalink
fix libp2p
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Dec 2, 2024
1 parent a4ab8b5 commit 786348d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/torii/libp2p/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,8 @@ impl<P: Provider + Sync> Relay<P> {
let model_id = ty_model_id(&ty).unwrap();

// select only identity field, if doesn't exist, empty string
let query = format!(
"SELECT external_identity FROM [{}] WHERE id = ?",
ty.name()
);
let query =
format!("SELECT identity FROM [{}] WHERE id = ?", ty.name());
let entity_identity: Option<String> = match sqlx::query_scalar(&query)
.bind(format!("{:#x}", entity_id))
.fetch_optional(&mut *pool)
Expand Down

0 comments on commit 786348d

Please sign in to comment.