wip: draft system

This commit is contained in:
Supan Adit Pratama 2024-11-19 00:23:04 +07:00
parent b38f1eadc3
commit 55ea41298a
3 changed files with 4 additions and 0 deletions

View File

@ -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();

View File

@ -2,4 +2,5 @@ import { DefaultProcess } from './default.process';
export class CreateProcess extends DefaultProcess {
public payload;
public isDraft: boolean = false;
}

View File

@ -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;
}