fix: type error (temporary)
This commit is contained in:
parent
3f0ed2c8d6
commit
dd7e5aa2f2
1 changed files with 1 additions and 2 deletions
|
|
@ -26,7 +26,6 @@ if (!process.env.MINIO_BUCKET) {
|
|||
const MINIO_BUCKET = process.env.MINIO_BUCKET;
|
||||
|
||||
export type CustomerCreate = {
|
||||
code?: string;
|
||||
status?: Status;
|
||||
customerType: string;
|
||||
customerName: string;
|
||||
|
|
@ -34,7 +33,6 @@ export type CustomerCreate = {
|
|||
};
|
||||
|
||||
export type CustomerUpdate = {
|
||||
code?: string;
|
||||
status?: "ACTIVE" | "INACTIVE";
|
||||
customerType?: string;
|
||||
customerName?: string;
|
||||
|
|
@ -101,6 +99,7 @@ export class CustomerController extends Controller {
|
|||
const record = await prisma.customer.create({
|
||||
data: {
|
||||
...body,
|
||||
code: "CUSTOMER001",
|
||||
createdBy: req.user.name,
|
||||
updateBy: req.user.name,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue