@kipicore/dbcore 1.1.391 → 1.1.393

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.
@@ -67,7 +67,10 @@ exports.awsClient = {
67
67
  return cached.sns;
68
68
  },
69
69
  async expiry() {
70
- await ensureClients();
70
+ if (!cached.s3) {
71
+ await refreshClients();
72
+ }
73
+ // await ensureClients();
71
74
  return cached.expiry;
72
75
  },
73
76
  };
@@ -27,5 +27,6 @@ export interface ISubscriptionPlanModelAttributes extends IDefaultAttributes, Do
27
27
  detailsList?: any;
28
28
  sequence: number;
29
29
  isFree?: boolean;
30
- isTrial?: number;
30
+ isTrial?: boolean;
31
+ isCustom?: boolean;
31
32
  }
@@ -131,6 +131,10 @@ const subscriptionPlanModelSchema = new mongoose_1.Schema({
131
131
  type: Boolean,
132
132
  default: false,
133
133
  },
134
+ isCustom: {
135
+ type: Boolean,
136
+ default: false,
137
+ },
134
138
  sequence: { type: Number, required: false },
135
139
  }, {
136
140
  timestamps: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.391",
3
+ "version": "1.1.393",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",