fix: missing field

This commit is contained in:
Methapon Metanipat 2024-09-11 13:46:31 +07:00
parent a6951c7fd8
commit 5b9472b466

View file

@ -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({