diff --git a/src/controllers/03-employee-controller.ts b/src/controllers/03-employee-controller.ts index bc2c6be..9a57772 100644 --- a/src/controllers/03-employee-controller.ts +++ b/src/controllers/03-employee-controller.ts @@ -92,6 +92,7 @@ type EmployeeCreate = { subDistrictId?: string | null; districtId?: string | null; provinceId?: string | null; + selectedImage?: string | null; employeeWork?: { ownerName?: string | null; @@ -173,6 +174,7 @@ type EmployeeUpdate = { tm6Number?: string | null; entryDate?: Date | null; workerStatus?: string | null; + selectedImage?: string | null; subDistrictId?: string | null; districtId?: string | null; @@ -762,7 +764,7 @@ export class EmployeeController extends Controller { } @Route("api/v1/employee/{employeeId}") -@Tags("Branch") +@Tags("Employee") export class EmployeeFileController extends Controller { private async checkPermission(user: RequestWithUser["user"], id: string) { const data = await prisma.employee.findFirst({