deprecated function removed, no need for backup
This commit is contained in:
@@ -136,8 +136,12 @@ pub async fn post_table_data(
|
||||
script_record.script,
|
||||
"STRINGS",
|
||||
Arc::new(db_pool.clone()),
|
||||
context,
|
||||
schema_id,
|
||||
profile_name.clone(),
|
||||
table_name.clone(),
|
||||
string_data_for_scripts.clone(),
|
||||
)
|
||||
.await
|
||||
.map_err(|e| Status::invalid_argument(
|
||||
format!("Script execution failed for '{}': {}", target_column, e)
|
||||
))?;
|
||||
|
||||
@@ -199,8 +199,17 @@ pub async fn put_table_data(
|
||||
db_pool: Arc::new(db_pool.clone()),
|
||||
};
|
||||
|
||||
let script_result = execution::execute_script(script_record.script, "STRINGS", Arc::new(db_pool.clone()), context)
|
||||
.map_err(|e| Status::invalid_argument(format!("Script execution failed for '{}': {}", target_column, e)))?;
|
||||
let script_result = execution::execute_script(
|
||||
script_record.script,
|
||||
"STRINGS",
|
||||
Arc::new(db_pool.clone()),
|
||||
schema_id,
|
||||
profile_name.clone(),
|
||||
table_name.clone(),
|
||||
final_context_data.clone(),
|
||||
)
|
||||
.await
|
||||
.map_err(|e| Status::invalid_argument(format!("Script execution failed for '{}': {}", target_column, e)))?;
|
||||
|
||||
let Value::Strings(mut script_output_vec) = script_result else {
|
||||
return Err(Status::internal("Script must return string values"));
|
||||
|
||||
Reference in New Issue
Block a user