fix: adiciona JWT_SECRET e ALLOWED_ORIGINS no docker-compose, e corrige enabled=1 para PostgreSQL nas rotas de imagens
continuous-integration/webhook Deploy concluido (rx.scoreodonto.com)

This commit is contained in:
VPS 4 Builder
2026-05-27 02:36:06 +02:00
parent 0b06b55c66
commit 9f4538786b
5 changed files with 286 additions and 7 deletions
+2 -2
View File
@@ -747,7 +747,7 @@ io.on('connection', (socket) => {
// Verificar se a imagem já foi inserida no banco
const existing = await db.get(
"SELECT id, filename FROM images WHERE original_filename = $1 AND enabled = 1 LIMIT 1",
"SELECT id, filename FROM images WHERE original_filename = $1 AND enabled = true LIMIT 1",
[data.metadata.fileName]
);
if (existing) {
@@ -871,7 +871,7 @@ io.on('connection', (socket) => {
}
const existing = await db.get(
"SELECT id, filename FROM images WHERE original_filename = $1 AND enabled = 1 LIMIT 1",
"SELECT id, filename FROM images WHERE original_filename = $1 AND enabled = true LIMIT 1",
[data.fileName]
);