@@ -19,7 +19,9 @@ public sealed class V1Facade(
1919 IStore < Assignment , long > assignmentStore ,
2020 AssignmentMapper assignmentMapper ,
2121 IStore < Dispatch , int > dispatchStore ,
22- DispatchMapper dispatchMapper
22+ DispatchMapper dispatchMapper ,
23+ IStore < SpaceStation , int > spaceStationStore ,
24+ SpaceStationMapper spaceStationMapper
2325)
2426{
2527 /// <see cref="IStore{T,TKey}.SetStore" />
@@ -35,6 +37,7 @@ public async ValueTask UpdateStores(MappingContext context)
3537 await UpdateCampaignStore ( context , planets ) ;
3638 await UpdateAssignmentsStore ( context ) ;
3739 await UpdateDispatchStore ( context ) ;
40+ await UpdateSpaceStationStore ( context , planets ) ;
3841 }
3942
4043 private async ValueTask UpdateWarStore ( MappingContext context , List < Planet > planets )
@@ -76,4 +79,13 @@ private async ValueTask UpdateDispatchStore(MappingContext context)
7679
7780 await dispatchStore . SetStore ( dispatches ) ;
7881 }
82+
83+ private async ValueTask UpdateSpaceStationStore ( MappingContext context , List < Planet > planets )
84+ {
85+ var spaceStations = spaceStationMapper
86+ . MapToV1 ( context , planets )
87+ . ToList ( ) ;
88+
89+ await spaceStationStore . SetStore ( spaceStations ) ;
90+ }
7991}
0 commit comments