fix(lint): tipagem estrita de Error em hook Auth e sync timeout de catch

This commit is contained in:
2026-08-13 21:22:29 +00:00
parent ad00e3b65d
commit 9fae693cb3
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -309,7 +309,9 @@ export const useSessionLogs = () => {
.from('user_session_logs')
.update({ updated_at: new Date().toISOString() })
.eq('id', sessionId)
.catch(console.error);
.then(({ error }) => {
if (error) console.error('Heartbeat error:', error);
});
}
}, 30000); // Atualizar a cada 30 segundos
return () => clearInterval(interval);