Fix send whatsapp

Auth API
- src/app/api/auth/login/route.ts
- src/app/api/auth/mobile-login/route.ts
- src/app/api/auth/mobile-register/route.ts
- src/app/api/auth/resend/route.ts

User API (Mobile)
- src/app/api/mobile/user/route.ts
- src/app/api/mobile/admin/user/[id]/route.ts

Utility
- src/lib/code-otp-sender.ts

### No issue
This commit is contained in:
2026-01-29 15:04:40 +08:00
parent c94da645f3
commit 8b54f5ca65
7 changed files with 48 additions and 23 deletions

View File

@@ -7,7 +7,7 @@ import {
NotificationMobileBodyType,
NotificationMobileTitleType,
} from "../../../../../types/type-mobile-notification";
import { sendCodeOtp } from "@/lib/code-otp-sender";
import { funSendToWhatsApp } from "@/lib/code-otp-sender";
export async function POST(req: Request) {
if (req.method !== "POST") {
@@ -70,7 +70,7 @@ export async function POST(req: Request) {
{ status: 400 }
);
const resSendCode = await sendCodeOtp({
const resSendCode = await funSendToWhatsApp({
nomor: data.nomor,
codeOtp: codeOtp.toString(),
});