mirror of
https://github.com/hackku21/loc-chain-backend.git
synced 2026-03-02 03:40:09 +00:00
Modify removal of transaction
This commit is contained in:
@@ -70,7 +70,8 @@ export class Transaction extends Unit {
|
|||||||
this.compare(left, right).then(match => {
|
this.compare(left, right).then(match => {
|
||||||
if ( match ) {
|
if ( match ) {
|
||||||
this.blockchain.submitTransactions([left, right])
|
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()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user