File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,10 @@ public ActionResult Create(CreateRosterViewModel vm)
183183 vm . Opponent ,
184184 ParseDate ( vm . Date ) ,
185185 vm . IsFourPlayer ,
186- new OilPatternInformation ( vm . OilPatternName ! , vm . OilPatternUrl ! ) ) ;
186+ new OilPatternInformation ( vm . OilPatternName ! , vm . OilPatternUrl ! ) )
187+ {
188+ ManuallyAdded = true
189+ } ;
187190 CompositionRoot . DocumentSession . Store ( roster ) ;
188191 return RedirectToAction ( "Index" ) ;
189192 }
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ public string? TeamLevel
116116 public List < AuditLogEntry > AuditLogEntries { get ; }
117117 public int Version => AuditLogEntries . Count ;
118118 public bool Preliminary { get ; set ; }
119+ public bool ManuallyAdded { get ; set ; }
119120
120121 public List < string > Players { get ; set ; } = new List < string > ( ) ;
121122
Original file line number Diff line number Diff line change @@ -138,7 +138,8 @@ public override async Task Handle(HandlerContext<Command> context)
138138 Roster [ ] toRemove = rosters
139139 . Where ( x => foundMatchIds . Contains ( x . BitsMatchId ) == false
140140 && x . MatchResultId is null
141- && x . Turn <= 20 )
141+ && x . Turn < 20
142+ && x . ManuallyAdded == false )
142143 . ToArray ( ) ;
143144 if ( toRemove . Any ( ) )
144145 {
You can’t perform that action at this time.
0 commit comments