Skip to content

Commit

Permalink
event:fix init.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Dec 26, 2024
1 parent c1a730b commit 66a5047
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/middlewares/event/src/event_initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pub async fn init(web_server: &TardisWebServer) -> TardisResult<()> {
}

async fn init_db(domain_code: String, kind_code: String, funs: &TardisFunsInst, ctx: &TardisContext) -> TardisResult<()> {
bios_basic::rbum::rbum_initializer::init(funs.module_code(), funs.conf::<EventConfig>().rbum.clone()).await?;
if let Some(domain_id) = RbumDomainServ::get_rbum_domain_id_by_code(&domain_code, funs).await? {
let kind_id = RbumKindServ::get_rbum_kind_id_by_code(&kind_code, funs).await?.expect("missing event kind");
EventInfoManager::set(EventInfo { kind_id, domain_id })?;
Expand Down

0 comments on commit 66a5047

Please sign in to comment.