biz-slide-core 1.2.75 → 1.2.77
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ var PPTSlideSchema = new mongoose_1.Schema({
|
|
10
10
|
title: { type: String, default: null },
|
11
11
|
rawData: { type: String, default: "{}" },
|
12
12
|
originalData: { type: String, default: "{}" },
|
13
|
+
staticData: { type: String, default: "{}" },
|
13
14
|
images: { type: String, default: "{}" },
|
14
15
|
istmp: { type: Boolean, default: false },
|
15
16
|
appName: { type: String, default: null },
|
@@ -131,7 +131,7 @@ var authorizeWithSlideApp = function () {
|
|
131
131
|
sessionId: sessionId,
|
132
132
|
ipAddress: ipAddress,
|
133
133
|
appName: req.headers['x-app-name'],
|
134
|
-
email: (token === null || token === void 0 ? void 0 : token.
|
134
|
+
email: (token === null || token === void 0 ? void 0 : token.customer_email) || ""
|
135
135
|
};
|
136
136
|
next();
|
137
137
|
_b.label = 2;
|
@@ -162,7 +162,7 @@ var nonAuthorizeWithSlideApp = function () {
|
|
162
162
|
return [2 /*return*/, res.status(401).json({ message: 'Session Expired' })];
|
163
163
|
}
|
164
164
|
userId = (token === null || token === void 0 ? void 0 : token.customer_id) || ((_a = token === null || token === void 0 ? void 0 : token.value) === null || _a === void 0 ? void 0 : _a.email);
|
165
|
-
email = (token === null || token === void 0 ? void 0 : token.
|
165
|
+
email = (token === null || token === void 0 ? void 0 : token.customer_email) || "";
|
166
166
|
if (!userId) {
|
167
167
|
return [2 /*return*/, res.status(401).json({ message: 'userId not found' })];
|
168
168
|
}
|