From bc3c6b9416c779fe7c8b61852a4ba1f33d9fb13a Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 2 Mar 2026 05:22:44 +0000 Subject: [PATCH] 7 --- backend/src/ai/LocalAIApi.js | 2 +- backend/src/services/auth.js | 1 + backend/src/services/file.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/ai/LocalAIApi.js b/backend/src/ai/LocalAIApi.js index 2b438e4..b42fa33 100644 --- a/backend/src/ai/LocalAIApi.js +++ b/backend/src/ai/LocalAIApi.js @@ -315,7 +315,7 @@ function buildUrl(pathValue, baseUrl) { } function resolveStatusPath(aiRequestId, cfg) { - const basePath = (cfg.responsesPath || "").replace(///+$/, ""); + const basePath = (cfg.responsesPath || "").replace(/\/\/+$/, ""); if (!basePath) { return `/ai-request/${encodeURIComponent(String(aiRequestId))}/status`; } diff --git a/backend/src/services/auth.js b/backend/src/services/auth.js index 2862da4..88ffccc 100644 --- a/backend/src/services/auth.js +++ b/backend/src/services/auth.js @@ -1,3 +1,4 @@ +const db = require('../db/models'); const UsersDBApi = require('../db/api/users'); const ValidationError = require('./notifications/errors/validation'); const ForbiddenError = require('./notifications/errors/forbidden'); diff --git a/backend/src/services/file.js b/backend/src/services/file.js index 597be30..f445b81 100644 --- a/backend/src/services/file.js +++ b/backend/src/services/file.js @@ -176,7 +176,7 @@ const downloadGCloud = async (req, res) => { } else { res.status(404).send({ - message: "Could not download the file. " + err, + message: "Could not download the file. ", }); } } catch (err) {