@armi-wave/common 1.23.17 → 1.23.18
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.js
CHANGED
package/build/models/Follow.js
CHANGED
|
@@ -60,8 +60,6 @@ const followSchema = new mongoose_1.Schema({
|
|
|
60
60
|
});
|
|
61
61
|
// Ensure a user cannot follow the same person multiple times
|
|
62
62
|
followSchema.index({ followerId: 1, followingId: 1 }, { unique: true });
|
|
63
|
-
followSchema.index({ followerId: 1 });
|
|
64
|
-
followSchema.index({ followingId: 1 });
|
|
65
63
|
// Create and export the model
|
|
66
64
|
const Follow = mongoose_1.default.model('Follow', followSchema);
|
|
67
65
|
exports.default = Follow;
|
package/build/models/Like.js
CHANGED
|
@@ -60,7 +60,6 @@ const likeSchema = new mongoose_1.Schema({
|
|
|
60
60
|
});
|
|
61
61
|
// Ensure a user cannot like the same person multiple times
|
|
62
62
|
likeSchema.index({ userId: 1, postId: 1 }, { unique: true });
|
|
63
|
-
likeSchema.index({ userId: 1 });
|
|
64
63
|
// Create and export the model
|
|
65
64
|
const Like = mongoose_1.default.model('Like', likeSchema);
|
|
66
65
|
exports.default = Like;
|
package/build/models/Post.js
CHANGED
package/build/models/Reply.js
CHANGED
package/build/models/User.js
CHANGED