diff --git a/src/helpers/database.rs b/src/helpers/database.rs index 7314570..aea059a 100644 --- a/src/helpers/database.rs +++ b/src/helpers/database.rs @@ -705,7 +705,7 @@ pub fn update(u: UpdateInfo) -> ResultBoxError<()> { // Additional conditions if let Some(custom_where) = u.custom_where { - conditions = format!("{} AND ({})", conditions, custom_where); + conditions = format!("({}) AND ({})", conditions, custom_where); u.custom_where_args.iter().for_each(|f| values.push(f)) }