fix: withdrawal idb store

This commit is contained in:
Danil Kovtonyuk 2022-06-14 18:56:36 +10:00
parent dce468cace
commit c7d1a5cb8e
4 changed files with 17 additions and 20 deletions

View file

@ -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
})