7
This commit is contained in:
parent
ff0821d034
commit
bc3c6b9416
@ -315,7 +315,7 @@ function buildUrl(pathValue, baseUrl) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function resolveStatusPath(aiRequestId, cfg) {
|
function resolveStatusPath(aiRequestId, cfg) {
|
||||||
const basePath = (cfg.responsesPath || "").replace(///+$/, "");
|
const basePath = (cfg.responsesPath || "").replace(/\/\/+$/, "");
|
||||||
if (!basePath) {
|
if (!basePath) {
|
||||||
return `/ai-request/${encodeURIComponent(String(aiRequestId))}/status`;
|
return `/ai-request/${encodeURIComponent(String(aiRequestId))}/status`;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
const db = require('../db/models');
|
||||||
const UsersDBApi = require('../db/api/users');
|
const UsersDBApi = require('../db/api/users');
|
||||||
const ValidationError = require('./notifications/errors/validation');
|
const ValidationError = require('./notifications/errors/validation');
|
||||||
const ForbiddenError = require('./notifications/errors/forbidden');
|
const ForbiddenError = require('./notifications/errors/forbidden');
|
||||||
|
|||||||
@ -176,7 +176,7 @@ const downloadGCloud = async (req, res) => {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
res.status(404).send({
|
res.status(404).send({
|
||||||
message: "Could not download the file. " + err,
|
message: "Could not download the file. ",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user