Bug Fixes

This commit is contained in:
Benjamin Toby
2024-11-05 15:18:40 +01:00
parent 3cdf78e58d
commit 748ff55092
507 changed files with 3719 additions and 1231 deletions
@@ -148,9 +148,9 @@ const datasquirel = __webpack_require__(9538);
const publicRootPath = path__WEBPACK_IMPORTED_MODULE_2___default().join(STATIC_ROOT, `images`);
const publicUrlPathRoot = `${process.env.DSQL_STATIC_HOST}/images/user-images/user-${user.id}`;
const publicRelativePathRoot = `/images/user-images/user-${user.id}`;
const mediaRelPathRoot = isPrivate ? `./jsonData/dbSchemas/users/user-${user.id}/media` : publicRootPath;
const mediaRelPathRoot = isPrivate ? `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/media` : publicRootPath;
const mediaRelPath = mediaRelPathRoot + mediaMatchedPath;
const destinationPath = isPrivate ? `${publicRootPath}/user-images/user-${user.id}` : `./jsonData/dbSchemas/users/user-${user.id}/media`;
const destinationPath = isPrivate ? `${publicRootPath}/user-images/user-${user.id}` : `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/media`;
if (!fs.existsSync(destinationPath)) {
try {
fs.mkdirSync(destinationPath, {
@@ -257,7 +257,7 @@ const datasquirel = __webpack_require__(9538);
var __webpack_require__ = require("../../../webpack-api-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [5425,2224,6825], () => (__webpack_exec__(9643)));
var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(9643)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -130,7 +130,7 @@ const datasquirel = __webpack_require__(9538);
////////////////////////////////////////
/**
* Handle request logic here
*/ const rootFolder = `./jsonData/dbSchemas/users/user-${user.id.toString().replace(/\//g, "")}`;
*/ const rootFolder = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id.toString().replace(/\//g, "")}`;
const rootPath = filePath.replace(/\@/, rootFolder);
const fileStream = fs.createReadStream(rootPath);
/**
@@ -164,7 +164,7 @@ const datasquirel = __webpack_require__(9538);
var __webpack_require__ = require("../../../webpack-api-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [5425,2224,6825], () => (__webpack_exec__(1635)));
var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(1635)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long