feat(protokoll): Protokoll ansehen, mit Filtern und Mandantensicht (#45)
Prüfung / pruefung (push) Canceled after 0s
Prüfung / e2e (push) Canceled after 0s

This commit was merged in pull request #45.
This commit is contained in:
2026-10-04 16:06:26 +00:00
parent f5936327a0
commit e1f244e4e8
23 changed files with 1103 additions and 22 deletions
+4 -1
View File
@@ -568,7 +568,7 @@ async function abschlussSchreiben(
uebersprungen: number,
): Promise<void> {
await prisma.$transaction(async (tx) => {
await tx.verzeichnisquelle.update({
const quelle = await tx.verzeichnisquelle.update({
where: { id: quelleId },
data: {
letzterAbgleichAm: new Date(),
@@ -578,6 +578,9 @@ async function abschlussSchreiben(
});
await tx.protokoll.create({
data: {
// Aus der Aktualisierung, nicht aus einer zweiten Abfrage: der Kunde
// steht in derselben Zeile, die gerade geschrieben wurde (#023).
kundeId: quelle.kundeId,
entitaet: "Verzeichnisquelle",
entitaetId: quelleId,
aktion: