mirror of
https://github.com/Expand-sys/ccash-client-js
synced 2026-03-22 12:27:09 +11:00
Fixed setBalance
This commit is contained in:
parent
b57218c604
commit
71375e0443
1 changed files with 1 additions and 2 deletions
|
|
@ -65,9 +65,8 @@ export class CCashClient implements ICCashClient {
|
||||||
|
|
||||||
setBalance(user: string, pass: string, amount: number): Promise<number> {
|
setBalance(user: string, pass: string, amount: number): Promise<number> {
|
||||||
return this.http
|
return this.http
|
||||||
.patch(`/admin/${user}/bal`, undefined, {
|
.patch(`/admin/${user}/bal/amount=${amount}`, undefined, {
|
||||||
headers: { Password: pass },
|
headers: { Password: pass },
|
||||||
params: { amount },
|
|
||||||
})
|
})
|
||||||
.then((response) => this.handleError(response) || amount);
|
.then((response) => this.handleError(response) || amount);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue