Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Jun 11, 2024
1 parent da57f69 commit b66c637
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cala-server/src/graphql/journal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
pub(super) status: Status,
pub(super) description: Option<String>,
}

#[derive(Clone, SimpleObject)]
Expand Down
5 changes: 4 additions & 1 deletion cala-server/src/graphql/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,10 @@ impl<E: MutationExtensionMarker> CoreMutation<E> {
.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);
}
Expand Down

0 comments on commit b66c637

Please sign in to comment.