From 21c90faef0fe08137cdd00b35c6c7c4cb1f15d6f Mon Sep 17 00:00:00 2001 From: bodymindarts Date: Sun, 19 May 2024 21:47:48 +0200 Subject: [PATCH] fix: global ID for account --- cala-server/src/graphql/account.rs | 2 +- cala-server/src/graphql/job.rs | 2 +- cala-server/src/graphql/journal.rs | 2 +- cala-server/src/graphql/tx_template.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cala-server/src/graphql/account.rs b/cala-server/src/graphql/account.rs index 0dce19d8..e482c523 100644 --- a/cala-server/src/graphql/account.rs +++ b/cala-server/src/graphql/account.rs @@ -90,7 +90,7 @@ pub(super) struct AccountCreatePayload { impl ToGlobalId for cala_ledger::AccountId { fn to_global_id(&self) -> async_graphql::types::ID { - async_graphql::types::ID::from("account:{self}") + async_graphql::types::ID::from(format!("account:{}", self)) } } diff --git a/cala-server/src/graphql/job.rs b/cala-server/src/graphql/job.rs index aa6ff31c..60420bc0 100644 --- a/cala-server/src/graphql/job.rs +++ b/cala-server/src/graphql/job.rs @@ -43,7 +43,7 @@ impl CursorType for JobByNameCursor { impl ToGlobalId for crate::primitives::JobId { fn to_global_id(&self) -> async_graphql::types::ID { - async_graphql::types::ID::from(format!("job:{self}")) + async_graphql::types::ID::from(format!("job:{}", self)) } } diff --git a/cala-server/src/graphql/journal.rs b/cala-server/src/graphql/journal.rs index 2cedd427..b74cc870 100644 --- a/cala-server/src/graphql/journal.rs +++ b/cala-server/src/graphql/journal.rs @@ -29,7 +29,7 @@ pub struct JournalCreatePayload { impl ToGlobalId for cala_ledger::JournalId { fn to_global_id(&self) -> async_graphql::types::ID { - async_graphql::types::ID::from(format!("journal:{self}")) + async_graphql::types::ID::from(format!("journal:{}", self)) } } diff --git a/cala-server/src/graphql/tx_template.rs b/cala-server/src/graphql/tx_template.rs index a46e68dc..4c88f98d 100644 --- a/cala-server/src/graphql/tx_template.rs +++ b/cala-server/src/graphql/tx_template.rs @@ -90,7 +90,7 @@ pub(super) struct TxTemplateCreatePayload { impl ToGlobalId for cala_ledger::TxTemplateId { fn to_global_id(&self) -> async_graphql::types::ID { - async_graphql::types::ID::from(format!("tx_template:{self}")) + async_graphql::types::ID::from(format!("tx_template:{}", self)) } }