biz-slide-core 1.2.50 → 1.2.52

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.
@@ -27,6 +27,7 @@ var PPTSchema = new mongoose_1.Schema({
27
27
  prompt: { type: String, default: null },
28
28
  noOfSlides: { type: Number, default: null },
29
29
  appName: { type: String, default: null },
30
+ navigateFromGPT: { type: Boolean, default: false },
30
31
  }, {
31
32
  timestamps: true,
32
33
  });
@@ -198,7 +198,8 @@ var authorizeWithGpt = function () {
198
198
  req.user = {
199
199
  userId: userId,
200
200
  ipAddress: ipAddress,
201
- appName: "APP_CHATGPT"
201
+ appName: req.headers['x-app-name'],
202
+ navigateFromGPT: true
202
203
  };
203
204
  next();
204
205
  return [2 /*return*/];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.50",
3
+ "version": "1.2.52",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {