fix(lint): resolve restricted import and console.log warnings

Change circuit-breaker import in resilient-search.repository.ts to use
@modules/shared barrel export instead of deep path, fixing no-restricted-imports
error. Replace console.log with console.warn in encrypt-existing-kyc.ts script
to satisfy no-console rule.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-10 21:13:39 +07:00
parent 9b786c1c95
commit d30c5630ce
2 changed files with 152 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ async function main() {
select: { id: true, kycData: true },
});
console.log(`Found ${users.length} users with kycData.`);
console.warn(`Found ${users.length} users with kycData.`);
let encrypted = 0;
let skipped = 0;
@@ -55,7 +55,7 @@ async function main() {
const encryptedValue = encryptField(user.kycData, config);
if (dryRun) {
console.log(`[DRY RUN] Would encrypt kycData for user ${user.id}`);
console.warn(`[DRY RUN] Would encrypt kycData for user ${user.id}`);
} else {
await prisma.user.update({
where: { id: user.id },
@@ -65,7 +65,7 @@ async function main() {
encrypted++;
}
console.log(
console.warn(
`${dryRun ? '[DRY RUN] ' : ''}Done. Encrypted: ${encrypted}, Already encrypted: ${skipped}`,
);
} finally {