Skip to content

Commit

Permalink
println debug
Browse files Browse the repository at this point in the history
  • Loading branch information
marcua committed Jan 19, 2025
1 parent 55ebcd7 commit b43f6b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server/endpoints/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ async fn query(
ayb_config: web::Data<AybConfig>,
authenticated_entity: Option<web::ReqData<InstantiatedEntity>>,
) -> Result<web::Json<QueryResult>, AybError> {
println!("1");
let entity_slug = &path.entity.to_lowercase();
println!("2");
let database_slug = &path.database;
println!("3");
let database = ayb_db.get_database(entity_slug, database_slug).await?;
println!("4");
let authenticated_entity = unwrap_authenticated_entity(&authenticated_entity)?;

println!("5");

let access_level =
highest_query_access_level(&authenticated_entity, &database, &ayb_db).await?;
println!("6");
match access_level {
Some(access_level) => {
let db_type = DBType::try_from(database.db_type)?;
Expand Down

0 comments on commit b43f6b9

Please sign in to comment.