From 3b67642ec2a41fd609dd74d1ce62d216644677c3 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Fri, 8 Sep 2023 14:35:58 +0200 Subject: [PATCH] Add ts(skip) attributes to fix js client code generation (#3952) * Add ts(skip) attributes to fix js client code generation * use feature flag --- crates/db_schema/src/source/community.rs | 2 ++ crates/db_schema/src/source/person.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/crates/db_schema/src/source/community.rs b/crates/db_schema/src/source/community.rs index c00a065a6..5da772be3 100644 --- a/crates/db_schema/src/source/community.rs +++ b/crates/db_schema/src/source/community.rs @@ -46,8 +46,10 @@ pub struct Community { pub icon: Option, /// A URL for a banner. pub banner: Option, + #[cfg_attr(feature = "full", ts(skip))] #[serde(skip, default = "placeholder_apub_url")] pub followers_url: DbUrl, + #[cfg_attr(feature = "full", ts(skip))] #[serde(skip, default = "placeholder_apub_url")] pub inbox_url: DbUrl, #[serde(skip)] diff --git a/crates/db_schema/src/source/person.rs b/crates/db_schema/src/source/person.rs index 339ce5adf..82772fefa 100644 --- a/crates/db_schema/src/source/person.rs +++ b/crates/db_schema/src/source/person.rs @@ -44,6 +44,7 @@ pub struct Person { pub banner: Option, /// Whether the person is deleted. pub deleted: bool, + #[cfg_attr(feature = "full", ts(skip))] #[serde(skip, default = "placeholder_apub_url")] pub inbox_url: DbUrl, #[serde(skip)]