mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Add dev-only factory ops for featuring a vehicle
This commit is contained in:
@@ -57,6 +57,14 @@ impl oj_rc_factory::VehicleFactoryAdapter for Factory {
|
||||
Self::None => Ok(()),
|
||||
}
|
||||
}
|
||||
|
||||
async fn set_featured(&self, id: i32, is_featured: bool) -> Result<(), Box<dyn std::error::Error>> {
|
||||
match self {
|
||||
Self::Arc(x) => x.set_featured(id, is_featured).await,
|
||||
Self::Custom(x) => x.set_featured(id, is_featured).await,
|
||||
Self::None => Ok(()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Factory {
|
||||
|
||||
Reference in New Issue
Block a user