cloud-ide-model-schema 1.1.39 → 1.1.40
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/lib/config/database.js +1 -1
- package/package.json +1 -1
package/lib/config/database.js
CHANGED
|
@@ -67,7 +67,7 @@ function connectDB() {
|
|
|
67
67
|
// Event listner for success and error // pending
|
|
68
68
|
var customUUID = function () {
|
|
69
69
|
var _a, _b, _c;
|
|
70
|
-
var key = (_c = "".concat((_b = (_a = (new mongoose.Types.ObjectId())) === null || _a === void 0 ? void 0 : _a.toHexString()) === null || _b === void 0 ? void 0 : _b.slice(0,
|
|
70
|
+
var key = (_c = "".concat((_b = (_a = (new mongoose.Types.ObjectId())) === null || _a === void 0 ? void 0 : _a.toHexString()) === null || _b === void 0 ? void 0 : _b.slice(0, 21)).concat(process.env.UUID_PREFIX)) === null || _c === void 0 ? void 0 : _c.toLowerCase();
|
|
71
71
|
console.log('Generated custom UUID:', key);
|
|
72
72
|
return key;
|
|
73
73
|
};
|
package/package.json
CHANGED