Add dev-only factory ops for featuring a vehicle

This commit is contained in:
NG (Graham) committed 2026-01-05 16:39:55 -05:00
1 parent 437b7f9fdd
commit 6211c930ba
6 files changed
+104

No files matched your search

+8
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 {