Fix budget balance request URL

This commit is contained in:
William Brawner 2022-11-08 20:54:02 -07:00
parent 3981e575f2
commit b3f24049ea

View file

@ -64,7 +64,7 @@ export class TwigsHttpService implements TwigsService {
from?: Date,
to?: Date
): Promise<number> {
const url = new URL('/api/transactions/sum')
const url = new URL('/api/transactions/sum', this.apiUrl)
url.searchParams.set('budgetId', id)
if (from) {
url.searchParams.set('from', from.toISOString());