mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2024-11-22 06:02:09 +00:00
Merge pull request #33 from chrwoizi/master
feat: Wait until the keys are generated
This commit is contained in:
commit
99f0bd9622
@ -104,7 +104,7 @@ module.exports = class Client {
|
|||||||
|
|
||||||
async initialization(order) {
|
async initialization(order) {
|
||||||
const keys = await this.keys();
|
const keys = await this.keys();
|
||||||
if (keys === null) this._generateKeys();
|
if (keys === null) await this._generateKeys();
|
||||||
|
|
||||||
if (this.tracesStorage)
|
if (this.tracesStorage)
|
||||||
this.tracesStorage.new().ofType('ORDER.INI');
|
this.tracesStorage.new().ofType('ORDER.INI');
|
||||||
@ -223,10 +223,10 @@ module.exports = class Client {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_generateKeys() {
|
async _generateKeys() {
|
||||||
const keysObject = Keys.generate();
|
const keysObject = Keys.generate();
|
||||||
|
|
||||||
this._writeKeys(keysObject);
|
await this._writeKeys(keysObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
async setBankKeys(bankKeys) {
|
async setBankKeys(bankKeys) {
|
||||||
|
Loading…
Reference in New Issue
Block a user