perf: Refactor getEnabledApps to filter on credentials passed (#10353)

Co-authored-by: Omar López <[email protected]>
Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-08-01 16:40:52 +05:30
1 parent 88f542cb0d
commit 6fa54aba46
20 files changed
+76 -27

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ export interface App {
/** Number of reviews, harcoded for now. Should be fetched later on. */
reviews?: number;
/**
* Wheter if the app is installed globally or needs user intervention.
* Whether if the app is installed globally or needs user intervention.
* Used to show Connect/Disconnect buttons in App Store
* */
isGlobal?: boolean;
+1 -1
View File
@@ -11,7 +11,7 @@ export type CredentialPayload = Prisma.CredentialGetPayload<{
appId: true;
type: true;
userId: true;
teamId?: true;
teamId: true;
key: true;
invalid: true;
};