diff --git a/src/testing/ausweise-fix-ausgestellt.ts b/src/testing/ausweise-fix-ausgestellt.ts index e2943e78..2baa3ee6 100644 --- a/src/testing/ausweise-fix-ausgestellt.ts +++ b/src/testing/ausweise-fix-ausgestellt.ts @@ -10,7 +10,7 @@ const existing_bedarfsausweiswohnen_list = await prisma.bedarfsausweisWohnen.fin }); for (const ausweis of existing_bedarfsausweiswohnen_list) { - if (ausweis.bestellt != false && ausweis.registriernummer == ""){ + if (ausweis.bestellt == true && ausweis.registriernummer == ""){ console.log( 'ID:' + ausweis.id + ' Reg.Nr:' + ausweis.registriernummer + @@ -20,16 +20,16 @@ for (const ausweis of existing_bedarfsausweiswohnen_list) { ' Ausgestellt am: ' + ausweis.ausstellungsdatum ); - await prisma.bedarfsausweisWohnen.update({ - where: { - id: ausweis.id - }, - data: { - bestellt: false, - ausgestellt: false, - ausstellungsdatum: null - } - }); + // await prisma.bedarfsausweisWohnen.update({ + // where: { + // id: ausweis.id + // }, + // data: { + // bestellt: false, + // ausgestellt: false, + // ausstellungsdatum: null + // } + // }); // if (start >= limit) break; start++;