Update schemas and resolve some warnings
This commit is contained in:
@ -17,10 +17,7 @@ impl Recordable for Options {
|
||||
sqlx::query!(
|
||||
"
|
||||
INSERT INTO todos (user_id, value)
|
||||
VALUES (
|
||||
(SELECT id FROM users WHERE user = ?),
|
||||
?
|
||||
)
|
||||
VALUES (?, ?)
|
||||
",
|
||||
ctx.author().id.get(),
|
||||
self.task
|
||||
|
@ -14,8 +14,7 @@ impl Recordable for Options {
|
||||
let values = sqlx::query!(
|
||||
"
|
||||
SELECT todos.id, value FROM todos
|
||||
INNER JOIN users ON todos.user_id = users.id
|
||||
WHERE users.user = ?
|
||||
WHERE user_id = ?
|
||||
",
|
||||
ctx.author().id.get(),
|
||||
)
|
||||
|
Reference in New Issue
Block a user