From 94687e47482de9b747f0e5de868b4e605bc0e8b0 Mon Sep 17 00:00:00 2001 From: bodymindarts Date: Tue, 11 Jun 2024 14:28:50 +0200 Subject: [PATCH] chore: setter(into) on journal status --- cala-ledger/src/journal/entity.rs | 2 +- cala-server/src/graphql/schema.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cala-ledger/src/journal/entity.rs b/cala-ledger/src/journal/entity.rs index 396fa24b..1dbd3e06 100644 --- a/cala-ledger/src/journal/entity.rs +++ b/cala-ledger/src/journal/entity.rs @@ -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, diff --git a/cala-server/src/graphql/schema.rs b/cala-server/src/graphql/schema.rs index 4ef8e2e5..32290044 100644 --- a/cala-server/src/graphql/schema.rs +++ b/cala-server/src/graphql/schema.rs @@ -322,7 +322,7 @@ impl CoreMutation { builder .id(input.journal_id) .name(input.name) - .status(input.status.into()); + .status(input.status); if let Some(description) = input.description { builder.description(description); }