fix: include

This commit is contained in:
Andras Bacsai 2022-08-30 09:19:34 +02:00
parent fe4c0a4f28
commit a5cc14e885

View File

@ -1258,7 +1258,7 @@ export async function getServiceFromDB({ id, teamId }: { id: string; teamId: str
const settings = await prisma.setting.findFirst();
const body = await prisma.service.findFirst({
where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },
include
include: includeServices
});
let { type } = body
type = fixType(type)