Skip to content

Commit

Permalink
fix: fail to serialize knowledge (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagojez authored Feb 20, 2025
1 parent 2df4f77 commit 0a831b9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions api/src/logic/knowledge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ use super::{read_without_key, HookExt, PublicExt, RequestExt};
use crate::server::{AppState, AppStores};
use axum::{routing::get, Router};
use bson::doc;
use entities::{
connection_model_definition::PlatformInfo, record_metadata::RecordMetadata, Id, MongoStore,
};
use entities::{record_metadata::RecordMetadata, Id, MongoStore};
use fake::Dummy;
use serde::{Deserialize, Serialize};
use std::sync::Arc;
Expand All @@ -24,8 +22,7 @@ pub struct Knowledge {
pub title: String,
pub path: String,
pub knowledge: Option<String>,
#[serde(flatten)]
pub platform_info: PlatformInfo,
pub base_url: String,
#[serde(flatten)]
pub metadata: RecordMetadata,
}
Expand Down

0 comments on commit 0a831b9

Please sign in to comment.