biz-slide-core 1.2.19 → 1.2.21
Sign up to get free protection for your applications and to get access to all the features.
package/entity/index.js
CHANGED
@@ -27,3 +27,4 @@ __exportStar(require("./template-type.entity"), exports);
|
|
27
27
|
__exportStar(require("./user.entity"), exports);
|
28
28
|
__exportStar(require("./training-queue.entity"), exports);
|
29
29
|
__exportStar(require("./config.enity"), exports);
|
30
|
+
__exportStar(require("./logs.entity"), exports);
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.LogsModel = void 0;
|
4
|
+
var mongoose_1 = require("mongoose");
|
5
|
+
var LogsSchema = new mongoose_1.Schema({
|
6
|
+
type: { type: String, required: true },
|
7
|
+
event: { type: String, required: true },
|
8
|
+
message: { type: String, required: true },
|
9
|
+
}, {
|
10
|
+
timestamps: true,
|
11
|
+
});
|
12
|
+
exports.LogsModel = (0, mongoose_1.model)("logs", LogsSchema);
|
package/package.json
CHANGED
@@ -63,7 +63,7 @@ function callWithRetries(retryCount, failedMessage, functionRef) {
|
|
63
63
|
error_1 = _a.sent();
|
64
64
|
if (retryCount <= 0)
|
65
65
|
throw error_1;
|
66
|
-
console.log(
|
66
|
+
console.log("callWithRetries", error_1 === null || error_1 === void 0 ? void 0 : error_1.message);
|
67
67
|
return [2 /*return*/, callWithRetries.apply(void 0, __spreadArray([retryCount - 1, failedMessage, functionRef], args, false))];
|
68
68
|
case 3: return [2 /*return*/];
|
69
69
|
}
|
@@ -48,7 +48,6 @@ function createFolder(folderPath) {
|
|
48
48
|
if (!fs_1.default.existsSync(folderPath)) {
|
49
49
|
fs_1.default.mkdirSync(folderPath);
|
50
50
|
}
|
51
|
-
console.log("Folder \"".concat(folderPath, "\" is ready."));
|
52
51
|
}
|
53
52
|
catch (error) {
|
54
53
|
console.error("Error: ".concat(error.message));
|
@@ -53,7 +53,6 @@ var verifyUid = function (token) { return __awaiter(void 0, void 0, void 0, func
|
|
53
53
|
var jwtToken = token.split(" ")[1] || token;
|
54
54
|
jsonwebtoken_1.default.verify(jwtToken, process.env.JWTSECRET || 'secret', function (err, decoded) {
|
55
55
|
if (err) {
|
56
|
-
console.log(err);
|
57
56
|
resolve(null);
|
58
57
|
}
|
59
58
|
else {
|