mirror of
https://github.com/Expand-sys/ccash-client-js
synced 2026-03-22 12:27:09 +11:00
fix: remove log transactionCount
This commit is contained in:
parent
dbe1008850
commit
a26b61aeec
2 changed files with 2 additions and 7 deletions
|
|
@ -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<number[]> {
|
||||
log(user: string, pass: string): Promise<number[]> {
|
||||
return this.http
|
||||
.get(`/${user}/bal`, {
|
||||
headers: { Password: pass },
|
||||
params: { n: transactionCount },
|
||||
})
|
||||
.then((response) => this.handleError(response) || response.data.value);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ export { User };
|
|||
export interface ICCashClient {
|
||||
// Usage
|
||||
balance(user: string): Promise<number>;
|
||||
log(user: string, pass: string, transactionCount?: number): Promise<number[]>;
|
||||
log(user: string, pass: string): Promise<number[]>;
|
||||
sendFunds(
|
||||
user: string,
|
||||
pass: string,
|
||||
|
|
|
|||
Loading…
Reference in a new issue