Skip to content

Commit 949b597

Browse files
authored
Feat: expose light cones rarity
1 parent b929a19 commit 949b597

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/api/light_cones/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ struct ApiDoc;
2222
#[derive(Serialize, ToSchema)]
2323
struct LightCone {
2424
id: i32,
25+
rarity: i32,
2526
name: String,
2627
path: String,
2728
path_id: String,
@@ -31,6 +32,7 @@ impl From<database::light_cones::DbLightCone> for LightCone {
3132
fn from(db_light_cone: database::light_cones::DbLightCone) -> Self {
3233
Self {
3334
id: db_light_cone.id,
35+
rarity: db_light_cone.rarity,
3436
name: db_light_cone.name,
3537
path: db_light_cone.path,
3638
path_id: db_light_cone.path_id,

0 commit comments

Comments
 (0)