Fixed setBalance

This commit is contained in:
Expand-sys 2021-06-14 12:12:34 +10:00 committed by GitHub
parent b57218c604
commit 71375e0443
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
} }