delete reminders when the user cannot be direct messaged

This commit is contained in:
jude
2022-05-14 10:56:03 +01:00
parent c4087bf569
commit 8eb46f1f23
2 changed files with 10 additions and 5 deletions

View File

@ -71,7 +71,7 @@ INSERT IGNORE INTO channels (channel) VALUES (?)
sqlx::query!(
"
INSERT INTO users (user, dm_channel, timezone) VALUES (?, (SELECT id FROM channels WHERE channel = ?), ?)
INSERT INTO users (name, user, dm_channel, timezone) VALUES ('', ?, (SELECT id FROM channels WHERE channel = ?), ?)
",
user_id.0,
dm_channel.id.0,