many fixes resultnig from latest refactoring
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 5m46s

This commit is contained in:
2025-12-08 23:07:50 -08:00
parent e156c385a5
commit c1a032d5e6
23 changed files with 66 additions and 81 deletions

View File

@@ -76,7 +76,7 @@ router.post('/register', async (req, res, next) => {
newUser = await repoWithTransaction.createUser(email, hashedPassword, { full_name, avatar_url });
await client.query('COMMIT');
} catch (error: any) {
} catch (error: unknown) {
if (error instanceof UniqueConstraintError) {
// If the email is a duplicate, return a 409 Conflict status.
return res.status(409).json({ message: error.message });