1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 21:39:21 +00:00

Fix potential source of issues

This commit is contained in:
Pierre HUBERT 2020-06-22 12:21:38 +02:00
parent 0a21531cb4
commit dc323936d6

View File

@ -705,7 +705,7 @@ pub fn update(u: UpdateInfo) -> ResultBoxError<()> {
// Additional conditions // Additional conditions
if let Some(custom_where) = u.custom_where { 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)) u.custom_where_args.iter().for_each(|f| values.push(f))
} }