diff --git a/libs/prisma/src/interfaces/config-module-options.interface.ts b/libs/prisma/src/interfaces/config-module-options.interface.ts index 5492091..da46c26 100644 --- a/libs/prisma/src/interfaces/config-module-options.interface.ts +++ b/libs/prisma/src/interfaces/config-module-options.interface.ts @@ -1,6 +1,7 @@ import { PrismaService } from '../prisma.service'; +import { PrismaListProcess } from '../processes/list.process'; export interface PrismaModuleOptions { delegate: (prisma: PrismaService) => any; - processList?: any; + processList: typeof PrismaListProcess; } diff --git a/src/processes/list.process.ts b/src/processes/list.process.ts index cde2359..1f44478 100644 --- a/src/processes/list.process.ts +++ b/src/processes/list.process.ts @@ -1,15 +1,12 @@ -import { PrismaProcess } from '@autocrud/prisma/processes/prisma.process'; -import { ListProcess } from '@autocrud/skeleton/processes/list.process'; - -export class AppListProcess extends PrismaProcess implements ListProcess { - private data: any; +import { PrismaListProcess } from '@autocrud/prisma/processes/list.process'; +export class AppListProcess extends PrismaListProcess { async process(): Promise { console.log('Hello World'); super.process(); } result() { - return this.data; + return []; } }