fix(build): resolve ESLint and type errors causing build failure

This commit is contained in:
2026-04-01 17:44:48 +08:00
parent b751f031cd
commit 8777c45a44
7 changed files with 14 additions and 13 deletions

View File

@@ -35,8 +35,9 @@ export async function POST(req: Request) {
const waData = await waRes.json();
console.log("📱 WA Response (Register):", waData);
}
} catch (waError: any) {
console.warn("⚠️ WA Connection Exception (Register). Continuing since OTP is logged.", waError.message);
} catch (waError: unknown) {
const errorMessage = waError instanceof Error ? waError.message : String(waError);
console.warn("⚠️ WA Connection Exception (Register). Continuing since OTP is logged.", errorMessage);
}
// ✅ Simpan OTP ke database