File tree Expand file tree Collapse file tree
packages/features/apps/repository Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { captureException } from "@sentry/nextjs" ;
2+
13import { appStoreMetadata } from "@calcom/app-store/appStoreMetaData" ;
24import { prisma } from "@calcom/prisma" ;
5+ import type { Prisma } from "@calcom/prisma/client" ;
36
47export class PrismaAppRepository {
5- static async seedApp ( dirName : string , keys ?: any ) {
8+ static async seedApp ( dirName : string , keys ?: Prisma . InputJsonValue ) {
69 const appMetadata = appStoreMetadata [ dirName as keyof typeof appStoreMetadata ] ;
710
811 if ( ! appMetadata ) {
@@ -21,6 +24,11 @@ export class PrismaAppRepository {
2124 }
2225
2326 static async findAppStore ( ) {
24- return await prisma . app . findMany ( { select : { slug : true } } ) ;
27+ try {
28+ return await prisma . app . findMany ( { select : { slug : true } } ) ;
29+ } catch ( error ) {
30+ captureException ( error ) ;
31+ throw error ;
32+ }
2533 }
2634}
You can’t perform that action at this time.
0 commit comments