Skip to content

Commit

Permalink
chore: setter(into) on journal status
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Jun 11, 2024
1 parent b66c637 commit 94687e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cala-ledger/src/journal/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub struct NewJournal {
pub id: JournalId,
#[builder(setter(into))]
pub(super) name: String,
#[builder(default)]
#[builder(setter(into), default)]
pub(super) status: Status,
#[builder(setter(strip_option, into), default)]
pub(super) description: Option<String>,
Expand Down
2 changes: 1 addition & 1 deletion cala-server/src/graphql/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ impl<E: MutationExtensionMarker> CoreMutation<E> {
builder
.id(input.journal_id)
.name(input.name)
.status(input.status.into());
.status(input.status);
if let Some(description) = input.description {
builder.description(description);
}
Expand Down

0 comments on commit 94687e4

Please sign in to comment.