mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-26 18:58:29 +02:00
fix: remove remnant job table, normalize taskstatus enum
This commit is contained in:
@@ -7,7 +7,7 @@ use axum_htmx::{HxBoosted, HxRequest};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use common::storage::types::{
|
||||
conversation::Conversation, file_info::FileInfo, text_content::TextContent, user::User,
|
||||
conversation::Conversation, file_info::FileInfo, text_content::TextContent, user::User, knowledge_entity::KnowledgeEntity, text_chunk::TextChunk,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
@@ -138,6 +138,10 @@ pub async fn delete_text_content(
|
||||
FileInfo::delete_by_id(&file_info.id, &state.db).await?;
|
||||
}
|
||||
|
||||
// Delete related knowledge entities and text chunks
|
||||
KnowledgeEntity::delete_by_source_id(&id, &state.db).await?;
|
||||
TextChunk::delete_by_source_id(&id, &state.db).await?;
|
||||
|
||||
// Delete the text content
|
||||
state.db.delete_item::<TextContent>(&id).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user