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