mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2025-05-04 20:39:53 +00:00
16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
import { DeleteProcess } from '@aditama-labs/nest-autocrud/skeleton';
|
|
import { PrismaProcess } from './prisma.process';
|
|
|
|
export class PrismaDeleteProcess
|
|
extends PrismaProcess
|
|
implements DeleteProcess
|
|
{
|
|
public identity;
|
|
|
|
async process() {
|
|
this.result = await this.getDelegate().delete({
|
|
where: { id: this.identity },
|
|
});
|
|
}
|
|
}
|