API Verbessert - Verbrauchsausweis Funktioniert

This commit is contained in:
Moritz Utcke
2024-01-08 14:38:28 +07:00
parent ff16c3b547
commit ee5133b3f8
40 changed files with 535 additions and 700 deletions

View File

@@ -4,7 +4,7 @@ import {
VerbrauchsausweisWohnen,
} from "@ibcornelsen/database";
import moment from "moment";
import trpc from "src/trpc";
import { client } from "src/trpc";
export function energetischeNutzflaecheVerbrauchsausweisWohnen_2016(
ausweis: VerbrauchsausweisWohnen & {
@@ -28,7 +28,7 @@ export async function endEnergieVerbrauchVerbrauchsausweis_2016(
return null
}
const klimafaktoren = await trpc.klimafaktoren.query({
const klimafaktoren = await client.v1.klimafaktoren.query({
plz: ausweis.gebaeude_stammdaten.plz,
genauigkeit: "years",
startdatum: ausweis.startdatum,

View File

@@ -1,4 +1,4 @@
import { getKlimafaktoren } from "#lib/Klimafaktoren";
import { getKlimafaktoren } from "#lib/getKlimafaktoren";
import { getHeizwertfaktor } from "#lib/server/Heizwertfaktor";
import { GebaeudeStammdaten, VerbrauchsausweisWohnen } from "@ibcornelsen/database";