refactor: ดักไม่ให้ส่ง code

This commit is contained in:
Net 2024-07-08 17:46:17 +07:00
parent 98bb78a69b
commit e6824716a1

View file

@ -104,7 +104,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
transactionId?: string;
},
) {
const { image, ...payload } = data;
const { code , image, ...payload } = data;
const res = await api.put<
Employee & { imageUrl: string; profileImageUploadUrl: string }
>(`/employee/${id}`, payload, {