remove weird check that was happening

This commit is contained in:
dal 2025-04-03 14:31:30 -06:00
parent be5df99b08
commit f70338ba1f
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 0 additions and 23 deletions

View File

@ -595,23 +595,6 @@ pub async fn process_metric_file(
return Err("No dataset IDs provided".to_string());
}
// Validate dataset IDs
let missing_ids = match validate_metric_ids(dataset_ids).await {
Ok(ids) => ids,
Err(e) => return Err(format!("Error validating dataset IDs: {}", e)),
};
if !missing_ids.is_empty() {
return Err(format!(
"Invalid dataset IDs: {}",
missing_ids
.iter()
.map(|id| id.to_string())
.collect::<Vec<String>>()
.join(", ")
));
}
// Use the first dataset ID for SQL validation
let dataset_id = dataset_ids[0];
@ -621,12 +604,6 @@ pub async fn process_metric_file(
Err(e) => return Err(format!("Invalid SQL query: {}", e)),
};
// Get current user's organization
let mut conn = match get_pg_pool().get().await {
Ok(conn) => conn,
Err(e) => return Err(format!("Database connection error: {}", e)),
};
let organization_id = match get_user_organization_id(user_id).await {
Ok(Some(org_id)) => org_id,
Ok(None) => return Err("User does not belong to any organization".to_string()),