File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
mithril-aggregator/src/database/provider Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ impl<'client> Provider<'client> for EpochSettingProvider<'client> {
126
126
fn get_definition ( & self , condition : & str ) -> String {
127
127
let aliases = SourceAlias :: new ( & [ ( "{:epoch_setting:}" , "es" ) ] ) ;
128
128
let projection = Self :: Entity :: get_projection ( ) . expand ( aliases) ;
129
- format ! ( "select {projection} from epoch_setting as es where {condition} order by epoch_setting_id asc " )
129
+ format ! ( "select {projection} from epoch_setting as es where {condition} order by epoch_setting_id desc " )
130
130
}
131
131
}
132
132
@@ -596,6 +596,9 @@ mod tests {
596
596
. get_last_n_records( epoch_settings. len( ) )
597
597
. await
598
598
. unwrap( )
599
+ . into_iter( )
600
+ . rev( )
601
+ . collect:: <Vec <( Epoch , ProtocolParameters ) >>( )
599
602
)
600
603
}
601
604
}
You can’t perform that action at this time.
0 commit comments