get main #512

Merged
IB-Cornelsen merged 66 commits from main into dev 2025-04-18 10:27:28 +00:00
Showing only changes of commit 6da7c0e501 - Show all commits

View File

@@ -1,7 +1,7 @@
import { Enums, prisma } from "#lib/server/prisma.js";
let start = 1;
let limit = 1;
let limit = 10;
const existing_bedarfsausweiswohnen_list = await prisma.bedarfsausweisWohnen.findMany({
where: {
@@ -20,18 +20,18 @@ 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;
if (start >= limit) break;
start++;
}
}