mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-07 07:35:25 +00:00
fix ts
This commit is contained in:
parent
cd04e661c5
commit
675d8fad46
2 changed files with 6 additions and 0 deletions
|
@ -669,7 +669,9 @@ pub struct BlockInstanceResponse {
|
|||
pub struct AdminBlockInstanceParams {
|
||||
pub instance_id: InstanceId,
|
||||
pub block: bool,
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub reason: Option<String>,
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub expires: Option<DateTime<Utc>>,
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,9 @@ use {
|
|||
pub struct FederationBlockList {
|
||||
pub instance_id: InstanceId,
|
||||
pub published: DateTime<Utc>,
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub updated: Option<DateTime<Utc>>,
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub block_expires: Option<DateTime<Utc>>,
|
||||
}
|
||||
|
||||
|
@ -54,7 +56,9 @@ pub struct AdminBlockInstance {
|
|||
pub id: i32,
|
||||
pub instance_id: InstanceId,
|
||||
pub admin_person_id: PersonId,
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub reason: Option<String>,
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub expires: Option<DateTime<Utc>>,
|
||||
pub published: DateTime<Utc>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue