Verbrauchsausweis Gewerbe

This commit is contained in:
Moritz Utcke
2025-02-19 11:11:24 +11:00
parent 78248ba0a4
commit df00cb88e2
19 changed files with 291 additions and 133 deletions

View File

@@ -27,7 +27,7 @@ export const GET = defineApiRoute({
})
}
const image = await prisma.gebaeudeBilder.findUnique({
const image = await prisma.bild.findUnique({
where: {
uid
}
@@ -40,7 +40,7 @@ export const GET = defineApiRoute({
})
}
const path = fileURLToPath(new URL(`../../../../../persistent/images/${image.uid}.webp`, import.meta.url))
const path = fileURLToPath(new URL(`../../../persistent/images/${image.uid}.webp`, import.meta.url))
const base64 = fs.readFileSync(path, "base64")
const buffer = Buffer.from(base64, "base64");