fix: resolve TypeScript errors and eliminate manual coordinate hardcoding

- Fix sendEmail function call to use proper EmailOptions object
- Improve GeographicMap by replacing 52 hardcoded coordinates with automatic extraction from @rapideditor/country-coder library
- Fix test imports to use correct exported functions from lib modules
- Add missing required properties to Prisma mock objects in tests
- Properly type all mock objects with correct enum values and required fields
- Simplify rate limiter mock to avoid private property conflicts
- Fix linting issues with variable declarations and useEffect dependencies
This commit is contained in:
2025-07-05 13:59:12 +02:00
committed by Kaj Kowalski
parent a0ac60cf04
commit 5798988012
6 changed files with 501 additions and 790 deletions

View File

@ -60,11 +60,11 @@ export async function POST(request: NextRequest) {
});
const resetUrl = `${process.env.NEXTAUTH_URL || "http://localhost:3000"}/reset-password?token=${token}`;
await sendEmail(
email,
"Password Reset",
`Reset your password: ${resetUrl}`
);
await sendEmail({
to: email,
subject: "Password Reset",
text: `Reset your password: ${resetUrl}`
});
}
return NextResponse.json({ success: true }, { status: 200 });