mirror of
				https://github.com/hackku21/loc-chain-backend.git
				synced 2025-06-13 12:53:59 +00:00 
			
		
		
		
	Fix param in remove exposure
This commit is contained in:
		
							parent
							
								
									105e460812
								
							
						
					
					
						commit
						3cb0a91d2a
					
				| @ -46,21 +46,9 @@ export class Exposure extends Unit { | |||||||
|     public async up() { |     public async up() { | ||||||
|         this.firebase.ref('exposure').on('child_added', (snapshot) => { |         this.firebase.ref('exposure').on('child_added', (snapshot) => { | ||||||
|             this.blockchain.submitExposures(snapshot.val()) |             this.blockchain.submitExposures(snapshot.val()) | ||||||
|             this.firebase.ref('exposure').child(snapshot.val()).remove() |             if (snapshot.key) { | ||||||
|             /*this.logging.debug('Received child_added event for exposures reference.') |                 this.firebase.ref('exposure').child(snapshot.key).remove() | ||||||
|             if ( !this.claim() ) return |             } | ||||||
|             // await this.firebase.trylock('block', 'Exposure_child_added')
 |  | ||||||
| 
 |  | ||||||
|             const exposure: ExposureResourceItem = snapshot.val() |  | ||||||
| 
 |  | ||||||
|             // Push the exposure transactions onto the chain
 |  | ||||||
|             await this.blockchain.submitExposures(exposure) |  | ||||||
| 
 |  | ||||||
|             if ( snapshot.key ) |  | ||||||
|                 await (<ExposureResource> this.make(ExposureResource)).ref().child(snapshot.key).remove() |  | ||||||
| 
 |  | ||||||
|             this.release() |  | ||||||
|             // await this.firebase.unlock('block')*/
 |  | ||||||
|         }) |         }) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user