biz-slide-core 1.2.41 → 1.2.43
Sign up to get free protection for your applications and to get access to all the features.
package/entity/ppt.entity.js
CHANGED
@@ -22,7 +22,8 @@ var PPTSchema = new mongoose_1.Schema({
|
|
22
22
|
version: { type: String, default: null },
|
23
23
|
noOfSlides: { type: Number, default: null },
|
24
24
|
trackIP: { type: String, default: null },
|
25
|
-
sessionId: { type: String, default: null }
|
25
|
+
sessionId: { type: String, default: null },
|
26
|
+
fileCreateCount: { type: Number, default: 0 }
|
26
27
|
}, {
|
27
28
|
timestamps: true,
|
28
29
|
});
|
@@ -158,8 +158,13 @@ var nonAuthorizeWithSlideApp = function () {
|
|
158
158
|
if (!userId) {
|
159
159
|
return [2 /*return*/, res.status(401).json({ message: 'userId not found' })];
|
160
160
|
}
|
161
|
-
|
161
|
+
return [3 /*break*/, 3];
|
162
162
|
case 2:
|
163
|
+
if (!ipAddress || !sessionId) {
|
164
|
+
return [2 /*return*/, res.status(401).json({ message: 'We are not able to track your actions' })];
|
165
|
+
}
|
166
|
+
_b.label = 3;
|
167
|
+
case 3:
|
163
168
|
req.user = {
|
164
169
|
userId: userId,
|
165
170
|
sessionId: sessionId,
|