shuttlepro-shared 1.1.33 → 1.1.35
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 +3 -3
- package/models/AllPostBatch.js +2 -3
- package/models/AllPostSchedule.js +0 -5
- package/models/AutoScheduler.js +0 -2
- package/models.js +8 -0
- package/package.json +1 -1
package/models/AllPost.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const mongoose = require("mongoose");
|
|
2
2
|
const { Schema } = mongoose;
|
|
3
|
-
|
|
4
|
-
const
|
|
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 =
|
|
59
|
+
module.exports = AllPostSchema;
|
package/models/AllPostBatch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const mongoose = require("mongoose");
|
|
2
2
|
const { Schema } = mongoose;
|
|
3
3
|
|
|
4
|
-
const
|
|
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
|
-
|
|
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;
|
package/models/AutoScheduler.js
CHANGED
package/models.js
CHANGED
|
@@ -5,6 +5,10 @@ const UserPermission = require("./models/UserPermission");
|
|
|
5
5
|
const GoogleClientInfo = require("./models/GoogleClientInfo");
|
|
6
6
|
const GoogleCredentials = require("./models/GoogleCredentials");
|
|
7
7
|
const User = require("./models/User");
|
|
8
|
+
const AllPostSchema = require("./models/AllPost");
|
|
9
|
+
const AllPostBatchSchema = require("./models/AllPostBatch");
|
|
10
|
+
const AllPostScheduleSchema = require("./models/AllPostSchedule");
|
|
11
|
+
const AutoSchedulerSchema = require("./models/AutoScheduler");
|
|
8
12
|
|
|
9
13
|
module.exports = {
|
|
10
14
|
Website,
|
|
@@ -14,4 +18,8 @@ module.exports = {
|
|
|
14
18
|
User,
|
|
15
19
|
GoogleClientInfo,
|
|
16
20
|
GoogleCredentials,
|
|
21
|
+
AllPostSchema,
|
|
22
|
+
AllPostBatchSchema,
|
|
23
|
+
AllPostScheduleSchema,
|
|
24
|
+
AutoSchedulerSchema,
|
|
17
25
|
};
|