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:
parent
0a21531cb4
commit
dc323936d6
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user