Unterlagen und weitere Fehler

This commit is contained in:
Moritz Utcke
2025-04-05 13:06:50 -03:00
parent 516e854616
commit 09cd167a70
34 changed files with 205 additions and 225 deletions

View File

@@ -5,7 +5,6 @@ import "../../svelte-dialogs.config.js";
import DashboardSidebar from "../components/Dashboard/DashboardSidebar.svelte";
import { validateAccessTokenServer } from "#server/lib/validateAccessToken";
import { BenutzerClient, ObjektClient } from "#components/Ausweis/types";
import { prisma } from "#lib/server/prisma";
const valid = validateAccessTokenServer(Astro)
@@ -20,29 +19,6 @@ export interface Props {
const { title, user } = Astro.props;
const objekte = await prisma.objekt.findMany({
where: {
benutzer: {
id: user.id
}
},
take: 10,
orderBy: {
erstellungsdatum: "desc"
},
include: {
aufnahmen: {
include: {
bilder: true,
unterlagen: true,
bedarfsausweise_wohnen: true,
verbrauchsausweise_gewerbe: true,
verbrauchsausweise_wohnen: true
}
}
}
})
const schema = JSON.stringify({
"@context": "http://schema.org",
"@type": "Corporation",
@@ -147,7 +123,7 @@ let lightTheme = Astro.cookies.get("theme")?.value === "light";
2xl:grid-cols-[minmax(150px,300px)1fr] 2xl:gap-5 2xl:p-6"
>
<DashboardSidebar lightTheme={lightTheme} benutzer={user} {objekte} client:load>
<DashboardSidebar lightTheme={lightTheme} benutzer={user} client:load>
</DashboardSidebar>
<article class="box rounded-tl-none