mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
sql: replace empty paramsv![] with empty tuples
This commit is contained in:
@@ -155,7 +155,7 @@ impl Context {
|
||||
.sql
|
||||
.query_map(
|
||||
"SELECT id, item FROM multi_device_sync ORDER BY id;",
|
||||
paramsv![],
|
||||
(),
|
||||
|row| Ok((row.get::<_, u32>(0)?, row.get::<_, String>(1)?)),
|
||||
|rows| {
|
||||
let mut ids = vec![];
|
||||
@@ -201,7 +201,7 @@ impl Context {
|
||||
self.sql
|
||||
.execute(
|
||||
&format!("DELETE FROM multi_device_sync WHERE id IN ({ids});"),
|
||||
paramsv![],
|
||||
(),
|
||||
)
|
||||
.await?;
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user