fix: remove syntax error (TS in JS) in portal backend

This commit is contained in:
Sidney 2026-05-11 20:09:02 -03:00
parent e58b38f010
commit 4970f17d07
1 changed files with 1 additions and 1 deletions

View File

@ -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 studentName = info[0]?.student_name || req.user.name || 'Aluno';
const className = info[0]?.class_name || 'Turma não identificada'; 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( await pool.query(
`INSERT INTO notificacoes (aluno_id, titulo, mensagem, anexo, lida, created_at) `INSERT INTO notificacoes (aluno_id, titulo, mensagem, anexo, lida, created_at)