shuttlepro-shared 1.1.33 → 1.1.34

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.
package/models/AllPost.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const mongoose = require("mongoose");
2
2
  const { Schema } = mongoose;
3
- const User = require("./User");
4
- const allPostSchema = new Schema(
3
+
4
+ const AllPostSchema = new Schema(
5
5
  {
6
6
  platform: { type: String, default: "" },
7
7
  type: { type: String, default: "" },
@@ -56,4 +56,4 @@ const allPostSchema = new Schema(
56
56
  },
57
57
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
58
58
  );
59
- module.exports = allPostSchema;
59
+ module.exports = AllPostSchema;
@@ -1,7 +1,7 @@
1
1
  const mongoose = require("mongoose");
2
2
  const { Schema } = mongoose;
3
3
 
4
- const allPostBatchSchema = new Schema(
4
+ const AllPostBatchSchema = new Schema(
5
5
  {
6
6
  type: { type: String, default: "" },
7
7
  status: { type: String, default: "pending" },
@@ -22,5 +22,4 @@ const allPostBatchSchema = new Schema(
22
22
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
23
23
  );
24
24
 
25
- // const AllPostBatch = mongoose.model("allPostBatch", allPostBatchSchema);
26
- module.exports = allPostBatchSchema;
25
+ module.exports = AllPostBatchSchema;
@@ -12,9 +12,4 @@ const AllPostScheduleSchema = new Schema(
12
12
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
13
13
  );
14
14
 
15
- // const AllPostSchedule = mongoose.model(
16
- // "AllPostSchedule",
17
- // AllPostScheduleSchema
18
- // );
19
-
20
15
  module.exports = AllPostScheduleSchema;
@@ -16,6 +16,4 @@ const AutoSchedulerSchema = new Schema(
16
16
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
17
17
  );
18
18
 
19
- // const AutoScheduler = mongoose.model("AutoScheduler", AutoSchedulerSchema);
20
-
21
19
  module.exports = AutoSchedulerSchema;
package/models.js CHANGED
@@ -4,7 +4,10 @@ const ColumnPreference = require("./models/ColumnPreference");
4
4
  const UserPermission = require("./models/UserPermission");
5
5
  const GoogleClientInfo = require("./models/GoogleClientInfo");
6
6
  const GoogleCredentials = require("./models/GoogleCredentials");
7
- const User = require("./models/User");
7
+ const AllPostSchema = require("./models/AllPost");
8
+ const AllPostBatchSchema = require("./models/AllPostBatch");
9
+ const AllPostScheduleSchema = require("./models/AllPostSchedule");
10
+ const AutoSchedulerSchema = require("./models/AutoScheduler");
8
11
 
9
12
  module.exports = {
10
13
  Website,
@@ -14,4 +17,8 @@ module.exports = {
14
17
  User,
15
18
  GoogleClientInfo,
16
19
  GoogleCredentials,
20
+ AllPostSchema,
21
+ AllPostBatchSchema,
22
+ AllPostScheduleSchema,
23
+ AutoSchedulerSchema,
17
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.1.33",
3
+ "version": "1.1.34",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {