diff --git a/src/pages/api/bedarfsausweis-wohnen/index.ts b/src/pages/api/bedarfsausweis-wohnen/index.ts index a45411f4..03c26b43 100644 --- a/src/pages/api/bedarfsausweis-wohnen/index.ts +++ b/src/pages/api/bedarfsausweis-wohnen/index.ts @@ -51,7 +51,7 @@ export const PUT = defineApiRoute({ } const id = generatePrefixedId( - 6, + 9, VALID_UUID_PREFIXES.BedarfsausweisWohnen ); diff --git a/src/testing/daten-umziehen.ts b/src/testing/daten-umziehen.ts index 30ecb490..915d2f40 100644 --- a/src/testing/daten-umziehen.ts +++ b/src/testing/daten-umziehen.ts @@ -138,11 +138,11 @@ Papa.parse(file, { } const aufnahme_id = generatePrefixedId( - 6, + 9, VALID_UUID_PREFIXES.Aufnahme ); - const aufnahme = await prisma.aufnahme.create({ + const [aufnahme, aufnahme_error] = await tryCatch(prisma.aufnahme.create({ data: { id: aufnahme_id, alternative_heizung: dataset.alheizung == "1", @@ -243,7 +243,12 @@ Papa.parse(file, { zentralheizung: dataset.zentralheizung == "1", zirkulation: dataset.zirkulation == "1", }, - }); + })); + + if (aufnahme_error) { + console.log(aufnahme_error); + continue; + } /* -------------------------------- Bilder ------------------------------- */ try {