- corretto sendemail password... l'ho cambiata. e ho messo dei controlli
This commit is contained in:
@@ -52,7 +52,7 @@ router.post('/track-pageview', authenticate_noerror, async (req, res) => {
|
||||
|
||||
await pageView.save();
|
||||
|
||||
res.status(200).json({ message: 'Visita registrata' });
|
||||
res.status(200).json({ message: '' });
|
||||
} catch (error) {
|
||||
console.error('Errore nel salvataggio della visita:', error);
|
||||
res.status(500).json({ error: 'Impossibile registrare la visita' });
|
||||
|
||||
Reference in New Issue
Block a user