fix: missing field
This commit is contained in:
parent
a6951c7fd8
commit
5b9472b466
1 changed files with 3 additions and 1 deletions
|
|
@ -92,6 +92,7 @@ type EmployeeCreate = {
|
||||||
subDistrictId?: string | null;
|
subDistrictId?: string | null;
|
||||||
districtId?: string | null;
|
districtId?: string | null;
|
||||||
provinceId?: string | null;
|
provinceId?: string | null;
|
||||||
|
selectedImage?: string | null;
|
||||||
|
|
||||||
employeeWork?: {
|
employeeWork?: {
|
||||||
ownerName?: string | null;
|
ownerName?: string | null;
|
||||||
|
|
@ -173,6 +174,7 @@ type EmployeeUpdate = {
|
||||||
tm6Number?: string | null;
|
tm6Number?: string | null;
|
||||||
entryDate?: Date | null;
|
entryDate?: Date | null;
|
||||||
workerStatus?: string | null;
|
workerStatus?: string | null;
|
||||||
|
selectedImage?: string | null;
|
||||||
|
|
||||||
subDistrictId?: string | null;
|
subDistrictId?: string | null;
|
||||||
districtId?: string | null;
|
districtId?: string | null;
|
||||||
|
|
@ -762,7 +764,7 @@ export class EmployeeController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Route("api/v1/employee/{employeeId}")
|
@Route("api/v1/employee/{employeeId}")
|
||||||
@Tags("Branch")
|
@Tags("Employee")
|
||||||
export class EmployeeFileController extends Controller {
|
export class EmployeeFileController extends Controller {
|
||||||
private async checkPermission(user: RequestWithUser["user"], id: string) {
|
private async checkPermission(user: RequestWithUser["user"], id: string) {
|
||||||
const data = await prisma.employee.findFirst({
|
const data = await prisma.employee.findFirst({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue