fix: include
This commit is contained in:
parent
fe4c0a4f28
commit
a5cc14e885
1 changed files with 1 additions and 1 deletions
|
|
@ -1258,7 +1258,7 @@ export async function getServiceFromDB({ id, teamId }: { id: string; teamId: str
|
||||||
const settings = await prisma.setting.findFirst();
|
const settings = await prisma.setting.findFirst();
|
||||||
const body = await prisma.service.findFirst({
|
const body = await prisma.service.findFirst({
|
||||||
where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },
|
where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },
|
||||||
include
|
include: includeServices
|
||||||
});
|
});
|
||||||
let { type } = body
|
let { type } = body
|
||||||
type = fixType(type)
|
type = fixType(type)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue