Fix budget balance request URL
This commit is contained in:
parent
3981e575f2
commit
b3f24049ea
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ export class TwigsHttpService implements TwigsService {
|
||||||
from?: Date,
|
from?: Date,
|
||||||
to?: Date
|
to?: Date
|
||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const url = new URL('/api/transactions/sum')
|
const url = new URL('/api/transactions/sum', this.apiUrl)
|
||||||
url.searchParams.set('budgetId', id)
|
url.searchParams.set('budgetId', id)
|
||||||
if (from) {
|
if (from) {
|
||||||
url.searchParams.set('from', from.toISOString());
|
url.searchParams.set('from', from.toISOString());
|
||||||
|
|
Loading…
Reference in a new issue