fix: remove syntax error (TS in JS) in portal backend
This commit is contained in:
parent
e58b38f010
commit
4970f17d07
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue