From 2351c7a93b3bd35b2cb421aa88e097e925e14e9b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 26 Nov 2024 16:58:46 -0500 Subject: [PATCH] Fix ts optionals. --- crates/db_schema/src/source/combined/report.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/db_schema/src/source/combined/report.rs b/crates/db_schema/src/source/combined/report.rs index 7c55329e7..de0df8ad3 100644 --- a/crates/db_schema/src/source/combined/report.rs +++ b/crates/db_schema/src/source/combined/report.rs @@ -1,4 +1,4 @@ -use crate::newtypes::{CommentReportId, PostReportId, ReportCombinedId}; +use crate::newtypes::{CommentReportId, PostReportId, PrivateMessageReportId, ReportCombinedId}; #[cfg(feature = "full")] use crate::schema::report_combined; use chrono::{DateTime, Utc}; @@ -17,6 +17,10 @@ use ts_rs::TS; pub struct ReportCombined { pub id: ReportCombinedId, pub published: DateTime, + #[cfg_attr(feature = "full", ts(optional))] pub post_report_id: Option, + #[cfg_attr(feature = "full", ts(optional))] pub comment_report_id: Option, + #[cfg_attr(feature = "full", ts(optional))] + pub private_message_report_id: Option, }