From 1555e59b881a2048b4dff8185bf050ab64ea5612 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 25 May 2026 17:31:58 +0700 Subject: [PATCH] fixed BATCH_SIZE 100 to 50 --- src/controllers/ProfileSalaryController.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/controllers/ProfileSalaryController.ts b/src/controllers/ProfileSalaryController.ts index 19a9f5e4..8abe9aa2 100644 --- a/src/controllers/ProfileSalaryController.ts +++ b/src/controllers/ProfileSalaryController.ts @@ -70,7 +70,7 @@ export class ProfileSalaryController extends Controller { where: { position: Not(IsNull()) }, }); - const BATCH_SIZE = 100; + const BATCH_SIZE = 50; let successCount = 0; let failCount = 0; const allData: CreateTenurePositionOfficer[] = []; @@ -178,7 +178,7 @@ export class ProfileSalaryController extends Controller { where: { position: Not(IsNull()) }, }); - const BATCH_SIZE = 100; + const BATCH_SIZE = 50; let successCount = 0; let failCount = 0; const allData: CreateTenurePositionEmployee[] = []; @@ -290,7 +290,7 @@ export class ProfileSalaryController extends Controller { }, }); - const BATCH_SIZE = 100; + const BATCH_SIZE = 50; let successCount = 0; let failCount = 0; const allData: CreateTenureLevelOfficer[] = []; @@ -434,7 +434,7 @@ export class ProfileSalaryController extends Controller { }, }); - const BATCH_SIZE = 100; + const BATCH_SIZE = 50; let successCount = 0; let failCount = 0; const allData: CreateTenureLevelEmployee[] = []; @@ -575,7 +575,7 @@ export class ProfileSalaryController extends Controller { where: { posExecutive: Not(IsNull()) }, }); - const BATCH_SIZE = 100; + const BATCH_SIZE = 50; let successCount = 0; let failCount = 0; const allData: CreateTenurePositionExecutiveOfficer[] = [];