@armi-wave/common 1.23.15 → 1.23.16
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/build/models/Comment.d.ts +0 -1
- package/build/models/Comment.js +0 -3
- package/build/models/Post.d.ts +0 -1
- package/build/models/Post.js +0 -3
- package/build/models/Reply.d.ts +0 -1
- package/build/models/Reply.js +0 -3
- package/build/models/User.d.ts +0 -1
- package/build/models/User.js +0 -3
- package/package.json +1 -1
package/build/models/Comment.js
CHANGED
|
@@ -65,9 +65,6 @@ const commentSchema = new mongoose_1.Schema({
|
|
|
65
65
|
},
|
|
66
66
|
},
|
|
67
67
|
});
|
|
68
|
-
commentSchema.statics.build = (attrs) => {
|
|
69
|
-
return new Comment(attrs);
|
|
70
|
-
};
|
|
71
68
|
commentSchema.index({ postId: 1 });
|
|
72
69
|
const Comment = mongoose_1.default.model('Comment', commentSchema);
|
|
73
70
|
exports.default = Comment;
|
package/build/models/Post.d.ts
CHANGED
package/build/models/Post.js
CHANGED
|
@@ -61,9 +61,6 @@ const postSchema = new mongoose_1.Schema({
|
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
});
|
|
64
|
-
postSchema.statics.build = (attrs) => {
|
|
65
|
-
return new Post(attrs);
|
|
66
|
-
};
|
|
67
64
|
postSchema.index({ userId: 1 });
|
|
68
65
|
const Post = mongoose_1.default.model('Post', postSchema);
|
|
69
66
|
exports.default = Post;
|
package/build/models/Reply.d.ts
CHANGED
package/build/models/Reply.js
CHANGED
|
@@ -60,9 +60,6 @@ const replySchema = new mongoose_1.default.Schema({
|
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
});
|
|
63
|
-
replySchema.statics.build = (attrs) => {
|
|
64
|
-
return new Reply(attrs);
|
|
65
|
-
};
|
|
66
63
|
replySchema.index({ commentId: 1 });
|
|
67
64
|
const Reply = mongoose_1.default.model('Reply', replySchema);
|
|
68
65
|
exports.default = Reply;
|
package/build/models/User.d.ts
CHANGED
package/build/models/User.js
CHANGED
|
@@ -101,9 +101,6 @@ userSchema.pre('save', function (done) {
|
|
|
101
101
|
done();
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
|
-
userSchema.statics.build = (attrs) => {
|
|
105
|
-
return new User(attrs);
|
|
106
|
-
};
|
|
107
104
|
userSchema.index({ username: 1 }, { unique: true });
|
|
108
105
|
const User = mongoose_1.default.model('User', userSchema);
|
|
109
106
|
exports.default = User;
|