mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-05-20 02:38:05 +00:00
Remove delete from tagline and custom emoji impls
This commit is contained in:
parent
bab417a73e
commit
ead51517e4
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue