|
@@ -35,6 +35,9 @@ app.post('/add', express.json(), async (req, res) => {
|
|
lastUpdate: new Date(),
|
|
lastUpdate: new Date(),
|
|
}))
|
|
}))
|
|
await DBClient.instance.account.createMany({ data: createData })
|
|
await DBClient.instance.account.createMany({ data: createData })
|
|
|
|
+ for (const wallet of wallets) {
|
|
|
|
+ PKMapping.instance.set(wallet.address, wallet.privateKey)
|
|
|
|
+ }
|
|
res.status(200).send(JSON.stringify({ processed: pks.length }))
|
|
res.status(200).send(JSON.stringify({ processed: pks.length }))
|
|
})
|
|
})
|
|
|
|
|