1
0
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:
NG (Graham)
2026-01-05 16:39:55 -05:00
parent 437b7f9fdd
commit 6211c930ba
6 changed files with 104 additions and 0 deletions

View File

@@ -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 {