This commit is contained in:
Flatlogic Bot 2026-03-02 05:22:44 +00:00
parent ff0821d034
commit bc3c6b9416
3 changed files with 3 additions and 2 deletions

View File

@ -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`;
}

View File

@ -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');

View File

@ -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) {