diff --git a/src/controllers/customer-controller.ts b/src/controllers/customer-controller.ts index 03ce278..028e812 100644 --- a/src/controllers/customer-controller.ts +++ b/src/controllers/customer-controller.ts @@ -1,4 +1,4 @@ -import { Prisma, Status } from "@prisma/client"; +import { CustomerType, Prisma, Status } from "@prisma/client"; import { Body, Controller, @@ -27,14 +27,14 @@ const MINIO_BUCKET = process.env.MINIO_BUCKET; export type CustomerCreate = { status?: Status; - customerType: string; + customerType: CustomerType; customerName: string; customerNameEN: string; }; export type CustomerUpdate = { status?: "ACTIVE" | "INACTIVE"; - customerType?: string; + customerType: CustomerType; customerName?: string; customerNameEN?: string; };