diff --git a/src/app/api/v1/user/[id]/transfer-all/route.ts b/src/app/api/v1/user/[id]/transfer-all/route.ts index 0beade5..d4d453c 100644 --- a/src/app/api/v1/user/[id]/transfer-all/route.ts +++ b/src/app/api/v1/user/[id]/transfer-all/route.ts @@ -56,7 +56,7 @@ export async function POST(req: NextRequest, { params }: { params: IParams }) { ) } - const result: boolean = await transferAll(user.id, walletTo) + const result: boolean = await transferAll(user.phone_number, walletTo) if (!result) { return new NextResponse( JSON.stringify({