mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 13:29:21 +00:00
Fix potential source of issues
This commit is contained in:
parent
0a21531cb4
commit
dc323936d6
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user