Remove usages of FIND_IN_SET

FIND_IN_SET doesn't make use of indexes
This commit is contained in:
jude
2024-10-10 19:06:56 +01:00
parent 137ae6f24b
commit 6f223b1bc2
7 changed files with 163 additions and 156 deletions

View File

@@ -17,6 +17,7 @@ use serenity::{
model::id::{ChannelId, GuildId, UserId},
};
use sqlx::types::Json;
use sqlx::FromRow;
use crate::web::{
catchers::internal_server_error,
@@ -177,7 +178,7 @@ pub struct CreateReminder {
utc_time: NaiveDateTime,
}
#[derive(Serialize)]
#[derive(Serialize, FromRow)]
pub struct GetReminder {
attachment_name: Option<String>,
avatar: Option<String>,
@@ -209,7 +210,7 @@ pub struct GetReminder {
utc_time: NaiveDateTime,
}
#[derive(Serialize, Deserialize)]
#[derive(Serialize, Deserialize, FromRow)]
pub struct ReminderCsv {
attachment: Option<Attachment>,
attachment_name: Option<String>,