mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2025-05-05 04:49:54 +00:00
18 lines
379 B
TypeScript
18 lines
379 B
TypeScript
import { DefaultProcess } from '@aditama-labs/nest-autocrud/skeleton';
|
|
import { Inject, Injectable } from '@nestjs/common';
|
|
import { PRISMA_DELEGATE } from '../constants';
|
|
|
|
@Injectable()
|
|
export class PrismaProcess extends DefaultProcess {
|
|
constructor(
|
|
@Inject(PRISMA_DELEGATE)
|
|
private delegate,
|
|
) {
|
|
super();
|
|
}
|
|
|
|
getDelegate() {
|
|
return this.delegate;
|
|
}
|
|
}
|