File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ pub async fn last_approved<A: Adapter>(
117
117
}
118
118
119
119
mod channel_list {
120
+ use chrono:: serde:: ts_seconds:: deserialize as ts_seconds;
120
121
use chrono:: { DateTime , Utc } ;
121
122
use primitives:: { Channel , ValidatorId } ;
122
123
use serde:: { Deserialize , Serialize } ;
@@ -133,7 +134,12 @@ mod channel_list {
133
134
#[ serde( default = "default_page" ) ]
134
135
pub page : u64 ,
135
136
/// filters the list on `valid_until >= valid_until_ge`
136
- #[ serde( default = "Utc::now" ) ]
137
+ /// It should be the same timestamp format as the `Channel.valid_until`: **seconds**
138
+ #[ serde(
139
+ deserialize_with = "ts_seconds" ,
140
+ default = "Utc::now" ,
141
+ rename = "validUntil"
142
+ ) ]
137
143
pub valid_until_ge : DateTime < Utc > ,
138
144
pub creator : Option < String > ,
139
145
/// filters the channels containing a specific validator if provided
You can’t perform that action at this time.
0 commit comments