File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed
Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ public async Task<T> Call<T>(
325325 {
326326 foreach ( var warning in warnings )
327327 {
328- Console . WriteLine ( "Warning: " + warning ) ;
328+ Console . Error . WriteLine ( "Warning: " + warning ) ;
329329 }
330330 }
331331
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ Dictionary<string, object> data
6060 createdAt : map [ "$createdAt" ] . ToString ( ) ,
6161 updatedAt : map [ "$updatedAt" ] . ToString ( ) ,
6262 permissions : map [ "$permissions" ] is JsonElement jsonArrayProp7 ? jsonArrayProp7 . Deserialize < List < string > > ( ) ! : ( List < string > ) map [ "$permissions" ] ,
63- data : map
63+ data : map . TryGetValue ( "data" , out var dataValue ) ? ( Dictionary < string , object > ) dataValue : map
6464 ) ;
6565
6666 public Dictionary < string , object ? > ToMap ( ) => new Dictionary < string , object ? > ( )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Dictionary<string, object> data
1818 }
1919
2020 public static Preferences From ( Dictionary < string , object > map ) => new Preferences (
21- data : map
21+ data : map . TryGetValue ( "data" , out var dataValue ) ? ( Dictionary < string , object > ) dataValue : map
2222 ) ;
2323
2424 public Dictionary < string , object ? > ToMap ( ) => new Dictionary < string , object ? > ( )
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ Dictionary<string, object> data
6060 createdAt : map [ "$createdAt" ] . ToString ( ) ,
6161 updatedAt : map [ "$updatedAt" ] . ToString ( ) ,
6262 permissions : map [ "$permissions" ] is JsonElement jsonArrayProp7 ? jsonArrayProp7 . Deserialize < List < string > > ( ) ! : ( List < string > ) map [ "$permissions" ] ,
63- data : map
63+ data : map . TryGetValue ( "data" , out var dataValue ) ? ( Dictionary < string , object > ) dataValue : map
6464 ) ;
6565
6666 public Dictionary < string , object ? > ToMap ( ) => new Dictionary < string , object ? > ( )
Original file line number Diff line number Diff line change @@ -138,6 +138,10 @@ public static string OrderDesc(string attribute) {
138138 return new Query ( "orderDesc" , attribute , null ) . ToString ( ) ;
139139 }
140140
141+ public static string OrderRandom ( ) {
142+ return new Query ( "orderRandom" , null , null ) . ToString ( ) ;
143+ }
144+
141145 public static string Limit ( int limit ) {
142146 return new Query ( "limit" , null , limit ) . ToString ( ) ;
143147 }
You can’t perform that action at this time.
0 commit comments