mirror of
https://github.com/hackku21/loc-chain-backend.git
synced 2024-10-27 20:34:03 +00:00
Modify removal of transaction
This commit is contained in:
parent
3cb0a91d2a
commit
52132e3bd0
@ -70,7 +70,8 @@ export class Transaction extends Unit {
|
||||
this.compare(left, right).then(match => {
|
||||
if ( match ) {
|
||||
this.blockchain.submitTransactions([left, right])
|
||||
newSnapshot = newSnapshot.filter( (item) => item !== left && item !== right )
|
||||
this.firebase.ref('transaction').child(left.key).remove()
|
||||
this.firebase.ref('transaction').child(right.key).remove()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user