no message

This commit is contained in:
Kittapath 2024-08-01 16:49:26 +07:00
parent 463c1f9669
commit 4bce0ff22d

View file

@ -208,9 +208,9 @@ export class ImportDataController extends Controller {
for await (const item of readStream) { for await (const item of readStream) {
rowCount++; rowCount++;
const profileEmp = new ProfileEmployee(); const profileEmp = new ProfileEmployee();
if (item["FLAG_RETIRE_STATUS"] != "" && item["FLAG_RETIRE_STATUS"] != null) { // if (item["FLAG_RETIRE_STATUS"] != "" && item["FLAG_RETIRE_STATUS"] != null) {
continue; // continue;
} // }
if (item["FLAG_PERSON_TYPE"] != "6") { if (item["FLAG_PERSON_TYPE"] != "6") {
continue; continue;
} }
@ -589,7 +589,7 @@ export class ImportDataController extends Controller {
await Promise.all( await Promise.all(
profiles.map(async (_item) => { profiles.map(async (_item) => {
const existingProfile = await this.HR_PERSONAL_OFFICER_FAMILYRepo.findOne({ const existingProfile = await this.HR_PERSONAL_EMP_FAMILYRepo.findOne({
where: { CIT: _item.citizenId }, where: { CIT: _item.citizenId },
select: [ select: [
"CIT", "CIT",