biz-slide-core 1.2.2 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,7 @@ var PngSvgSchema = new mongoose_1.Schema({
7
7
  updatedAt: { type: Date, default: Date.now() },
8
8
  deletedAt: { type: Date, default: null },
9
9
  isLocked: { type: Boolean, default: false },
10
+ isDownloaded: { type: Boolean, default: false },
10
11
  isCompleted: { type: Boolean, default: false },
11
12
  userId: { type: String, default: null },
12
13
  title: { type: String, default: null },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -50,7 +50,7 @@ exports.signUid = signUid;
50
50
  var verifyUid = function (token) { return __awaiter(void 0, void 0, void 0, function () {
51
51
  return __generator(this, function (_a) {
52
52
  return [2 /*return*/, new Promise(function (resolve) {
53
- var jwtToken = token.split(" ")[1];
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
56
  console.log(err);