File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -210,16 +210,12 @@ public async Task<ChangesResult<Commit>> GetChanges(SyncState remoteState)
210210 return await _dbContext . Commits . GetChanges < Commit , IChange > ( remoteState ) ;
211211 }
212212
213- public async Task AddSnapshots ( IEnumerable < ObjectSnapshot > snapshots , bool project = true )
213+ public async Task AddSnapshots ( IEnumerable < ObjectSnapshot > snapshots )
214214 {
215- foreach ( var objectSnapshot in snapshots )
216- {
217- _dbContext . Add ( objectSnapshot ) ;
218- }
219-
220215 var projectedEntityIds = new HashSet < Guid > ( ) ;
221216 foreach ( var snapshot in snapshots . DefaultOrderDescending ( ) )
222217 {
218+ _dbContext . Add ( snapshot ) ;
223219 if ( projectedEntityIds . Add ( snapshot . EntityId ) )
224220 {
225221 await ProjectSnapshot ( snapshot ) ;
You can’t perform that action at this time.
0 commit comments