fix: EmployeeHistory type

This commit is contained in:
puriphatt 2024-07-02 04:34:33 +00:00
parent 410582948b
commit 186edd93fe

View file

@ -1,5 +1,6 @@
import { District, Province, SubDistrict } from '../address';
import { Status } from '../types';
import { User } from '../user/types';
export type Employee = {
id: string;
@ -217,9 +218,9 @@ export type EmployeeOtherCreate = {
export type EmployeeHistory = {
masterId: string;
updatedBy: string;
// updatedBy: string;
updatedBy: User;
updatedByUserId: string;
timestamp: Date;
valueAfter: string;
valueBefore: string;
field: string;
@ -231,9 +232,9 @@ export type NewEmployeeHistory = {
date: string;
data: {
masterId: string;
updatedBy: string;
// updatedBy: string;
updatedBy: User;
updatedByUserId: string;
timestamp: Date;
updatedAt: Date;
id: string;
history: { valueAfter: string; valueBefore: string; field: string }[];