diff --git a/server/app/src/queries/instance.rs b/server/app/src/queries/instance.rs index 2f6c8571..a0554a16 100644 --- a/server/app/src/queries/instance.rs +++ b/server/app/src/queries/instance.rs @@ -99,7 +99,7 @@ pub async fn save( Type::Leveling => { RdmInstanceArea::Leveling(feat.clone().to_single_vec().to_struct()) } - Type::AutoQuest | Type::PokemonIv => { + Type::AutoQuest | Type::PokemonIv | Type::AutoPokemon | Type::AutoTth => { RdmInstanceArea::Multi(feat.clone().to_multi_vec().to_multi_struct()) } }; diff --git a/server/entity/src/sea_orm_active_enums.rs b/server/entity/src/sea_orm_active_enums.rs index 982bd8e3..762d31c0 100644 --- a/server/entity/src/sea_orm_active_enums.rs +++ b/server/entity/src/sea_orm_active_enums.rs @@ -25,4 +25,8 @@ pub enum Type { PokemonIv, #[sea_orm(string_value = "leveling")] Leveling, + #[sea_orm(string_value = "auto_pokemon")] + AutoPokemon, + #[sea_orm(string_value = "auto_tth")] + AutoTth, } diff --git a/server/model/src/multi_vec.rs b/server/model/src/multi_vec.rs index 710eef50..e5500520 100644 --- a/server/model/src/multi_vec.rs +++ b/server/model/src/multi_vec.rs @@ -5,7 +5,9 @@ pub type MultiVec = Vec>>; impl ValueHelpers for MultiVec { fn get_geojson_value(self, enum_type: &Type) -> Value { match enum_type { - Type::AutoQuest | Type::PokemonIv => self.multi_polygon(), + Type::AutoQuest | Type::PokemonIv | Type::AutoPokemon | Type::AutoTth => { + self.multi_polygon() + } Type::CirclePokemon | Type::CircleSmartPokemon | Type::CircleRaid