mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2025-05-04 20:39:53 +00:00
wip: draft system
This commit is contained in:
parent
b38f1eadc3
commit
55ea41298a
@ -8,6 +8,7 @@ export class PrismaProcess extends DefaultProcess {
|
||||
constructor(
|
||||
@Inject(PRISMA_DELEGATE)
|
||||
private delegate,
|
||||
// This prisma still useful for user to get auto completion from LSP and direct access to prisma client
|
||||
public prisma: PrismaService,
|
||||
) {
|
||||
super();
|
||||
|
@ -2,4 +2,5 @@ import { DefaultProcess } from './default.process';
|
||||
|
||||
export class CreateProcess extends DefaultProcess {
|
||||
public payload;
|
||||
public isDraft: boolean = false;
|
||||
}
|
||||
|
@ -6,4 +6,6 @@ export class UpdateProcess extends DefaultProcess {
|
||||
public identityKey: string = 'id';
|
||||
// @TODO: The property of data can be take from CreateProcess which is extended
|
||||
public payload;
|
||||
// @TODO: The property of isDraft can be take from CreateProcess which is extended
|
||||
public isDraft: boolean = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user