File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,10 @@ pub async fn get_mod_updates(
136
136
) -> Result < impl Responder , ApiError > {
137
137
let mut pool = data. db . acquire ( ) . await . or ( Err ( ApiError :: DbAcquireError ) ) ?;
138
138
139
+ if query. platform == VerPlatform :: Android || query. platform == VerPlatform :: Mac {
140
+ return Err ( ApiError :: BadRequest ( "Invalid platform. Use android32 / android64 for android and mac-intel / mac-arm for mac" . to_string ( ) ) ) ;
141
+ }
142
+
139
143
let ids = query
140
144
. ids
141
145
. split ( ';' )
Original file line number Diff line number Diff line change @@ -52,11 +52,10 @@ impl FromStr for GDVersionEnum {
52
52
pub enum VerPlatform {
53
53
#[ sqlx( skip) ]
54
54
Android ,
55
- #[ serde( skip_deserializing) ]
56
55
Android32 ,
57
- #[ serde( skip_deserializing) ]
58
56
Android64 ,
59
57
Ios ,
58
+ #[ sqlx( skip) ]
60
59
Mac ,
61
60
#[ serde( rename = "mac-arm" ) ]
62
61
#[ sqlx( rename = "mac-arm" ) ]
You can’t perform that action at this time.
0 commit comments