Tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Aufnahme, BedarfsausweisGewerbe, BedarfsausweisWohnen, Bild, Objekt, prisma, Unterlage, VerbrauchsausweisGewerbe, VerbrauchsausweisWohnen } from "./prisma.js";
|
||||
import { Aufnahme, BedarfsausweisGewerbe, BedarfsausweisWohnen, Bild, GEGNachweisGewerbe, GEGNachweisWohnen, Objekt, prisma, Unterlage, VerbrauchsausweisGewerbe, VerbrauchsausweisWohnen } from "./prisma.js";
|
||||
|
||||
export async function getVerbrauchsausweisWohnen(id: string): Promise<VerbrauchsausweisWohnen | null> {
|
||||
return await prisma.verbrauchsausweisWohnen.findUnique({
|
||||
@@ -32,6 +32,22 @@ export async function getBedarfsausweisGewerbe(id: string): Promise<Bedarfsauswe
|
||||
})
|
||||
}
|
||||
|
||||
export async function getGEGNachweisWohnen(id: string): Promise<GEGNachweisWohnen | null> {
|
||||
return await prisma.gEGNachweisWohnen.findUnique({
|
||||
where: {
|
||||
id
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export async function getGEGNachweisGewerbe(id: string): Promise<GEGNachweisGewerbe | null> {
|
||||
return await prisma.gEGNachweisGewerbe.findUnique({
|
||||
where: {
|
||||
id
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export async function getAufnahme(id: string): Promise<Aufnahme | null> {
|
||||
return await prisma.aufnahme.findUnique({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user