fix(core): update

This commit is contained in:
2020-08-20 01:20:15 +00:00
parent 752c585e26
commit 5295bf272e
8 changed files with 7980 additions and 413 deletions

View File

@ -87,9 +87,11 @@ export class BunqAccount {
}
public async getAccounts() {
const apiMonetaryAccounts = await this.bunqJSClient.api.monetaryAccount.list(this.userId, {}).catch(e => {
console.log(e);
});
const apiMonetaryAccounts = await this.bunqJSClient.api.monetaryAccount
.list(this.userId, {})
.catch((e) => {
console.log(e);
});
const accountsArray: MonetaryAccount[] = [];
for (const apiAccount of apiMonetaryAccounts) {
accountsArray.push(MonetaryAccount.fromAPIObject(this, apiAccount));

View File

@ -97,7 +97,7 @@ export class MonetaryAccount {
older_id?: number | false;
} = {
count: 200,
newer_id: startingIdArg
newer_id: startingIdArg,
};
const apiTransactions = await this.bunqAccountRef.bunqJSClient.api.payment.list(