mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2025-02-08 09:08:36 +00:00
16 lines
385 B
TypeScript
16 lines
385 B
TypeScript
import { ListProcess } from '@aditama-labs/nest-autocrud/skeleton';
|
|
import { PrismaProcess } from './prisma.process';
|
|
|
|
export class PrismaListProcess extends PrismaProcess implements ListProcess {
|
|
private data: any;
|
|
|
|
async process(): Promise<any> {
|
|
this.data = await this.getDelegate().findMany();
|
|
}
|
|
|
|
result() {
|
|
console.log('ASDASDASDASD');
|
|
return this.data;
|
|
}
|
|
}
|