This commit is contained in:
Moritz Utcke
2025-04-01 13:49:47 -03:00
parent be94bd482c
commit 71f5093a49
23 changed files with 939 additions and 920 deletions

View File

@@ -35,6 +35,14 @@ export default defineConfig({
on("task", {
async verbrauchsausweisWohnen(query) {
return await prisma.verbrauchsausweisWohnen.findFirst(query)
},
async plz() {
const total = await prisma.postleitzahlen.count()
const result = await prisma.postleitzahlen.findFirst({
skip: Math.floor(Math.random() * total)
})
return result?.plz
}
})
},