fix: withdrawal idb store
This commit is contained in:
parent
dce468cace
commit
c7d1a5cb8e
4 changed files with 17 additions and 20 deletions
|
@ -26,7 +26,7 @@ class EventService {
|
|||
|
||||
getStoreNames(type) {
|
||||
const instanceName = `${type}s_${this.currency}_${this.amount}`
|
||||
const storeName = type === eventsType.DEPOSIT ? `${instanceName}_${this.netId}` : `${type}s_${this.netId}`
|
||||
const storeName = `${instanceName}_${this.netId}`
|
||||
|
||||
return { instanceName, storeName }
|
||||
}
|
||||
|
@ -338,9 +338,6 @@ class EventService {
|
|||
|
||||
await this.idb.createMultipleTransactions({
|
||||
data: events,
|
||||
index: {
|
||||
instance: instanceName
|
||||
},
|
||||
storeName
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue