From 047795810ed63047b3df970172bf89b6f9179f70 Mon Sep 17 00:00:00 2001 From: jude Date: Tue, 27 Oct 2020 22:53:05 +0000 Subject: [PATCH] fixed removing todo list items --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/commands/todo_cmds.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 79c65b1..1e7b0a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1175,7 +1175,7 @@ dependencies = [ [[package]] name = "reminder_rs" -version = "1.1.5" +version = "1.1.6" dependencies = [ "Inflector", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index e96a436..0c07c83 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reminder_rs" -version = "1.1.5" +version = "1.1.6" authors = ["jellywx "] edition = "2018" diff --git a/src/commands/todo_cmds.rs b/src/commands/todo_cmds.rs index ff55b08..cb18fc6 100644 --- a/src/commands/todo_cmds.rs +++ b/src/commands/todo_cmds.rs @@ -176,7 +176,7 @@ INSERT INTO todos (user_id, value) VALUES ( let deleting = sqlx::query_as!( Todo, " -SELECT * FROM todos WHERE id = ? +SELECT id, user_id, guild_id, channel_id, value FROM todos WHERE id = ? ", removal_todo.id )