Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhofer committed Sep 23, 2024
1 parent f6d5c34 commit 2b9b0fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl Path {
}

pub fn get_paths_for_collection(conn: &Connection, collection_name: &str) -> Vec<Path> {
let query = "SELECT path.id, path.block_group_id, path.name FROM path JOIN block_group ON path.block_group_id = block_group.id WHERE block_group.collection_name = ?1";
let query = "SELECT * FROM path JOIN block_group ON path.block_group_id = block_group.id WHERE block_group.collection_name = ?1";
Path::get_paths(conn, query, vec![Value::from(collection_name.to_string())])
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/path_edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl PathEdge {
let path_edges = PathEdge::query(
conn,
format!(
"select id, path_id, index_in_path, edge_id from path_edges where path_id in ({}) ORDER BY path_id, index_in_path",
"select * from path_edges where path_id in ({}) ORDER BY path_id, index_in_path",
placeholder_string
)
.as_str(),
Expand Down

0 comments on commit 2b9b0fa

Please sign in to comment.