Fix error in RPC Modify method query

This commit is contained in:
Tobie Morgan Hitchcock 2022-07-07 11:03:56 +01:00
parent 4ab552a8e3
commit 4438415b55

View file

@ -490,7 +490,7 @@ impl Rpc {
// Get a database reference // Get a database reference
let kvs = DB.get().unwrap(); let kvs = DB.get().unwrap();
// Specify the SQL query string // Specify the SQL query string
let sql = "UPDATE $what DIFF $data RETURN DIFF"; let sql = "UPDATE $what PATCH $data RETURN DIFF";
// Specify the query paramaters // Specify the query paramaters
let var = Some(map! { let var = Some(map! {
String::from("what") => what.make_table_or_thing(), String::from("what") => what.make_table_or_thing(),