Fix delete command
This commit is contained in:
parent
651da7b28e
commit
7695b7a476
@ -169,7 +169,7 @@ impl ComponentDataModel {
|
|||||||
let selected_id = component.data.values.join(",");
|
let selected_id = component.data.values.join(",");
|
||||||
|
|
||||||
sqlx::query!(
|
sqlx::query!(
|
||||||
"UPDATE reminders SET `status` = 'pending' WHERE FIND_IN_SET(id, ?)",
|
"UPDATE reminders SET `status` = 'deleted' WHERE FIND_IN_SET(id, ?)",
|
||||||
selected_id
|
selected_id
|
||||||
)
|
)
|
||||||
.execute(&data.database)
|
.execute(&data.database)
|
||||||
|
Loading…
Reference in New Issue
Block a user