Tests
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user