mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-11-04 09:34:04 +00:00 
			
		
		
		
	Add more flexibility to conservation policy update
This commit is contained in:
		@@ -944,6 +944,13 @@ pub fn update(u: UpdateInfo) -> ResultBoxError<()> {
 | 
			
		||||
 | 
			
		||||
    query_sql = format!("{} {} WHERE {}", query_sql, updates, conditions);
 | 
			
		||||
 | 
			
		||||
    if conf().database.log_all_queries {
 | 
			
		||||
        watcher::ExecDatabaseQuery::new(
 | 
			
		||||
            &query_sql,
 | 
			
		||||
            &values.iter().map(|f| mysql::Value::from(f)).collect(),
 | 
			
		||||
        ).display();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    get_connection()?.exec_drop(
 | 
			
		||||
        query_sql,
 | 
			
		||||
        values,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user