@heliyos/heliyos-api-core 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mongoose.js +3 -3
- package/package.json +1 -1
package/dist/mongoose.js
CHANGED
|
@@ -98,10 +98,10 @@ const mongooseConnected = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
98
98
|
}
|
|
99
99
|
let mongoUrl;
|
|
100
100
|
const nodeEnv = process.env.NODE_ENV;
|
|
101
|
-
if (nodeEnv === "local"
|
|
102
|
-
mongoUrl = process.env.MONGO_DATABASE_URL;
|
|
101
|
+
if (nodeEnv === "local") {
|
|
102
|
+
mongoUrl = process.env.MONGO_DATABASE_URL || "";
|
|
103
103
|
// Add logging to debug URL
|
|
104
|
-
logger_1.logger.info(`Connecting to MongoDB URL: ${mongoUrl.replace(/\/\/[^@]*@/, "//****:****@")}`);
|
|
104
|
+
logger_1.logger.info(`Connecting to MongoDB URL: ${mongoUrl === null || mongoUrl === void 0 ? void 0 : mongoUrl.replace(/\/\/[^@]*@/, "//****:****@")}`);
|
|
105
105
|
}
|
|
106
106
|
else if (["development", "production"].includes(nodeEnv)) {
|
|
107
107
|
const secrets = yield (0, ssm_1.getSecretsManagerSecret)(process.env.ENV_SECRET_NAME);
|