From 186edd93fe0e4be5a56acba16d38c962acd37394 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 2 Jul 2024 04:34:33 +0000 Subject: [PATCH] fix: EmployeeHistory type --- src/stores/employee/types.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/stores/employee/types.ts b/src/stores/employee/types.ts index fccf0c6d..ad612870 100644 --- a/src/stores/employee/types.ts +++ b/src/stores/employee/types.ts @@ -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 }[];