Only return enabled apps in getEnabledApps (#6653)
parent
cfa8fd8b67
commit
3e005919c1
|
@ -3,8 +3,10 @@ import type { CredentialData } from "@calcom/app-store/utils";
|
|||
import { prisma } from "@calcom/prisma";
|
||||
|
||||
const getEnabledApps = async (userCredentials: CredentialData[]) => {
|
||||
const enabledApps = await prisma.app.findMany({ select: { slug: true, enabled: true } });
|
||||
|
||||
const enabledApps = await prisma.app.findMany({
|
||||
where: { enabled: true },
|
||||
select: { slug: true, enabled: true },
|
||||
});
|
||||
const apps = getApps(userCredentials);
|
||||
|
||||
const filteredApps = enabledApps.reduce((reducedArray, app) => {
|
||||
|
|
Loading…
Reference in New Issue