fix: Resolve TypeScript errors and apply database migration for email-optional

- Add Prisma import for JsonNull filter
- Fix async/await for calculateDistance function
- Install mysql2 for database operations
- Apply ALTER TABLE migration to make email nullable in database
- Verify all tests pass successfully

Tests confirm:
- Users can be created without email
- Notifications work for users without email
- Email sending gracefully skipped when no email present
- Database queries correctly filter by email presence
This commit is contained in:
2025-11-18 18:13:20 +00:00
parent d87ec20714
commit d71c994f0f
3 changed files with 132 additions and 4 deletions

View File

@@ -31,6 +31,7 @@
"helmet": "^8.0.0",
"json2csv": "^6.0.0-alpha.2",
"multer": "^1.4.5-lts.1",
"mysql2": "^3.15.3",
"node-cron": "^4.2.1",
"nodemailer": "^7.0.10",
"redis": "^5.9.0",