fix os comparison in compareUsers
This commit is contained in:
		
							parent
							
								
									060549f2cb
								
							
						
					
					
						commit
						24facaab09
					
				@ -49,9 +49,12 @@ export async function compareUsers (t, users) {
 | 
				
			|||||||
    await u.db.garbageCollect()
 | 
					    await u.db.garbageCollect()
 | 
				
			||||||
    u.db.requestTransaction(function * () {
 | 
					    u.db.requestTransaction(function * () {
 | 
				
			||||||
      var os = yield * this.getOperationsUntransformed()
 | 
					      var os = yield * this.getOperationsUntransformed()
 | 
				
			||||||
      data.os = os.untransformed.map((op) => {
 | 
					      data.os = {}
 | 
				
			||||||
 | 
					      os.untransformed.forEach((op) => {
 | 
				
			||||||
        op = Y.Struct[op.struct].encode(op)
 | 
					        op = Y.Struct[op.struct].encode(op)
 | 
				
			||||||
        delete op.origin
 | 
					        delete op.origin
 | 
				
			||||||
 | 
					        data.os[JSON.stringify(op.id)] = op
 | 
				
			||||||
 | 
					        return op
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
      data.ds = yield * this.getDeleteSet()
 | 
					      data.ds = yield * this.getDeleteSet()
 | 
				
			||||||
      data.ss = yield * this.getStateSet()
 | 
					      data.ss = yield * this.getStateSet()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user