|
|
@ -598,7 +598,7 @@ async function addMembersBulk (ctx) { |
|
|
|
for (let i in editMembers) { |
|
|
|
let { pepUserId, name, idNumber, gender, birthday, nativePlace, marital, |
|
|
|
politicsStatus, phoneNumber, workPlace, graduatedFrom, educationBackground, specialty, graduationDate, |
|
|
|
hiredate, turnProbationPeriod, regularDate, dimissionDate, experienceYear, occupationalHistory } = editMembers[i]; |
|
|
|
hiredate, turnProbationPeriod, regularDate, dimissionDate, experienceYear, occupationalHistory, del } = editMembers[i]; |
|
|
|
|
|
|
|
let dataToUpdate = { |
|
|
|
name, |
|
|
@ -619,7 +619,8 @@ async function addMembersBulk (ctx) { |
|
|
|
regularDate, |
|
|
|
dimissionDate, |
|
|
|
experienceYear, |
|
|
|
occupationalHistory |
|
|
|
occupationalHistory, |
|
|
|
del |
|
|
|
} |
|
|
|
await models.Member.update(dataToUpdate, { where: { pepUserId: pepUserId } }); |
|
|
|
} |
|
|
|