Fix delete command

This commit is contained in:
jude 2023-08-19 14:35:07 +01:00
parent 651da7b28e
commit 7695b7a476

View File

@ -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)