Verbrauchsausweis Gewerbe
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user