Phase 10: Mandantenfähigkeit (#15)
This commit was merged in pull request #15.
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
SignaturRolle,
|
||||
WartungsterminStatus,
|
||||
} from "@prisma/client";
|
||||
import { router, mitRecht } from "@/server/trpc";
|
||||
import { router, mitRecht, eigeneAkte } from "@/server/trpc";
|
||||
import { AuditAktion, protokolliereIn } from "@/lib/audit";
|
||||
import { idEingabe } from "@/server/routers/stammdaten/gemeinsam";
|
||||
import { AUFTRAG, beauftrage } from "@/lib/warteschlange";
|
||||
@@ -282,7 +282,7 @@ export const pruefungRouter = router({
|
||||
if (laufender) return { pruefung: laufender, fortgesetzt: true };
|
||||
|
||||
const person = await db.person.findUnique({
|
||||
where: { id: ctx.sitzung.personId },
|
||||
where: { id: eigeneAkte(ctx.sitzung) },
|
||||
select: { vorname: true, nachname: true },
|
||||
});
|
||||
|
||||
@@ -724,7 +724,7 @@ export const pruefungRouter = router({
|
||||
}
|
||||
|
||||
const person = await db.person.findUnique({
|
||||
where: { id: ctx.sitzung.personId },
|
||||
where: { id: eigeneAkte(ctx.sitzung) },
|
||||
select: { vorname: true, nachname: true },
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user