biz-slide-core 1.2.82 → 1.2.84

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CronModel = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ var CronSchema = new mongoose_1.Schema({
6
+ name: { type: String, required: true },
7
+ status: { type: Boolean, default: false }
8
+ }, {
9
+ timestamps: true,
10
+ });
11
+ CronSchema.index({ userId: 1 });
12
+ exports.CronModel = (0, mongoose_1.model)("cron", CronSchema);
package/entity/index.js CHANGED
@@ -31,3 +31,4 @@ __exportStar(require("./logs.entity"), exports);
31
31
  __exportStar(require("./analytic.entity"), exports);
32
32
  __exportStar(require("./ppt-email-queue.entity"), exports);
33
33
  __exportStar(require("./customer.entity"), exports);
34
+ __exportStar(require("./cron.entity"), exports);
@@ -111,7 +111,7 @@ var createUser = function (emailId, userId, appName) { return __awaiter(void 0,
111
111
  customer = _a.sent();
112
112
  if (!!customer) return [3 /*break*/, 3];
113
113
  newCustomer = new entity_1.CustomerModel({
114
- appName: appName,
114
+ appName: appName || "default",
115
115
  emailId: emailId,
116
116
  emailTemplateStatus: {},
117
117
  userId: userId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.82",
3
+ "version": "1.2.84",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "tsc",