From a26b61aeecda844dc2e9e043aeeacad71d813dd7 Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Sun, 13 Jun 2021 21:32:19 +0100 Subject: [PATCH] fix: remove log transactionCount --- src/CCashClient.ts | 7 +------ src/CCashClient.types.ts | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/CCashClient.ts b/src/CCashClient.ts index eb9acb4..58a3310 100644 --- a/src/CCashClient.ts +++ b/src/CCashClient.ts @@ -26,15 +26,10 @@ export class CCashClient implements ICCashClient { .then((response) => this.handleError(response) || response.data.value); } - log( - user: string, - pass: string, - transactionCount: number = 10 - ): Promise { + log(user: string, pass: string): Promise { return this.http .get(`/${user}/bal`, { headers: { Password: pass }, - params: { n: transactionCount }, }) .then((response) => this.handleError(response) || response.data.value); } diff --git a/src/CCashClient.types.ts b/src/CCashClient.types.ts index c1f675d..e1acab1 100644 --- a/src/CCashClient.types.ts +++ b/src/CCashClient.types.ts @@ -5,7 +5,7 @@ export { User }; export interface ICCashClient { // Usage balance(user: string): Promise; - log(user: string, pass: string, transactionCount?: number): Promise; + log(user: string, pass: string): Promise; sendFunds( user: string, pass: string,