diff --git a/cala-server/src/graphql/journal.rs b/cala-server/src/graphql/journal.rs index 901d1530..8437fa28 100644 --- a/cala-server/src/graphql/journal.rs +++ b/cala-server/src/graphql/journal.rs @@ -4,11 +4,11 @@ use super::{convert::ToGlobalId, primitives::*}; #[derive(InputObject)] pub struct JournalCreateInput { - pub journal_id: UUID, - pub name: String, + pub(super) journal_id: UUID, + pub(super) name: String, #[graphql(default)] - pub status: Status, - pub description: Option, + pub(super) status: Status, + pub(super) description: Option, } #[derive(Clone, SimpleObject)] diff --git a/cala-server/src/graphql/schema.rs b/cala-server/src/graphql/schema.rs index cb704281..4ef8e2e5 100644 --- a/cala-server/src/graphql/schema.rs +++ b/cala-server/src/graphql/schema.rs @@ -319,7 +319,10 @@ impl CoreMutation { .try_lock() .expect("Lock held concurrently"); let mut builder = cala_ledger::journal::NewJournal::builder(); - builder.id(input.journal_id).name(input.name); + builder + .id(input.journal_id) + .name(input.name) + .status(input.status.into()); if let Some(description) = input.description { builder.description(description); }