From 9480d17de7e7428cd155d70ca9f0ef0179f3eb02 Mon Sep 17 00:00:00 2001 From: Ruslan Talpa Date: Mon, 30 Jun 2025 12:53:47 +0300 Subject: [PATCH] fix bug in pickcurrent_chema --- proxy/src/serverless/rest.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/proxy/src/serverless/rest.rs b/proxy/src/serverless/rest.rs index ebfec85936..c8d3d23a62 100644 --- a/proxy/src/serverless/rest.rs +++ b/proxy/src/serverless/rest.rs @@ -807,10 +807,7 @@ async fn handle_rest_inner( }?; // pick the current schema from the headers (or the first one from config) - //let schema_name = ¤t_schema(db_schemas, &method, &headers_map).map_err(RestError::SubzeroCore)?; - let schema_name = db_schema - .pick_current_schema(&method_str, &headers_map) - .map_err(RestError::SubzeroCore)?; + let schema_name = &DbSchema::pick_current_schema(db_schemas, &method_str, &headers_map)?; // add the content-profile header to the response let mut response_headers = vec![];