Remove delete from tagline and custom emoji impls

This commit is contained in:
Freakazoid182 2024-04-05 22:57:36 +02:00
parent bab417a73e
commit ead51517e4
2 changed files with 0 additions and 10 deletions

View file

@ -39,11 +39,6 @@ impl Crud for CustomEmoji {
.get_result::<Self>(conn)
.await
}
async fn delete(pool: &mut DbPool<'_>, id: Self::IdType) -> Result<usize, Error> {
let conn = &mut get_conn(pool).await?;
diesel::delete(custom_emoji.find(id)).execute(conn).await
}
}
impl CustomEmojiKeyword {

View file

@ -33,11 +33,6 @@ impl Crud for Tagline {
.get_result::<Self>(conn)
.await
}
async fn delete(pool: &mut DbPool<'_>, id: Self::IdType) -> Result<usize, Error> {
let conn = &mut get_conn(pool).await?;
diesel::delete(tagline.find(id)).execute(conn).await
}
}
impl Tagline {