From 4970f17d07932972660ec885896a58739670b5d0 Mon Sep 17 00:00:00 2001 From: Sidney Date: Mon, 11 May 2026 20:09:02 -0300 Subject: [PATCH] fix: remove syntax error (TS in JS) in portal backend --- portal/server.selfhosted.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/server.selfhosted.js b/portal/server.selfhosted.js index 5c49832..8be4e1d 100644 --- a/portal/server.selfhosted.js +++ b/portal/server.selfhosted.js @@ -641,7 +641,7 @@ app.post('/api/portal/avaliacoes/submeter', authMiddleware, async (req, res) => const studentName = info[0]?.student_name || req.user.name || 'Aluno'; const className = info[0]?.class_name || 'Turma não identificada'; - const typeLabel = (exam as any).evaluationType === 'activity' ? 'Atividade' : 'Prova'; + const typeLabel = exam.evaluationType === 'activity' ? 'Atividade' : 'Prova'; await pool.query( `INSERT INTO notificacoes (aluno_id, titulo, mensagem, anexo, lida, created_at)