Paul Bailey d1a06699e5 fix: Auto-create users on profile access and make email nullable in types
- Update getUserProfile, getUserReports, getUserEvents, and getUserActivity to call findOrCreateUser for Clerk IDs
- This ensures users are automatically created in database when accessing their profile for the first time
- Update User type to have email as 'string | null' instead of 'string'
- Fixes 404 errors when new users try to access their profile

This resolves the issue where new users signing up without email would get 404 errors when accessing their profile page.
2025-11-18 18:15:33 +00:00
2025-11-18 17:51:51 +00:00
2025-11-16 16:00:51 +00:00
2025-11-16 16:00:51 +00:00
2025-11-16 16:00:51 +00:00
2025-11-16 16:00:51 +00:00
2025-11-16 16:00:51 +00:00
2025-11-16 16:00:51 +00:00

Litter Scouts

Crowdsourced environmental monitoring web application for Irish coastal areas.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.

Description
No description provided
Readme 4.1 MiB
Languages
TypeScript 98.8%
JavaScript 0.7%
Dockerfile 0.3%
CSS 0.2%