From b66c637c7e273157dcad129f7dbbbba82f420a0f Mon Sep 17 00:00:00 2001 From: bodymindarts Date: Tue, 11 Jun 2024 14:27:31 +0200 Subject: [PATCH] fix: lint --- cala-server/src/graphql/journal.rs | 8 ++++---- cala-server/src/graphql/schema.rs | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) 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); }