@armi-wave/common 1.23.36 → 1.23.37

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.
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const mongoose_1 = __importStar(require("mongoose"));
37
37
  // Define the schema
38
- const likeSchema = new mongoose_1.Schema({
38
+ const videoPostLikeSchema = new mongoose_1.Schema({
39
39
  userId: {
40
40
  type: mongoose_1.Schema.Types.ObjectId,
41
41
  ref: 'User',
@@ -59,7 +59,7 @@ const likeSchema = new mongoose_1.Schema({
59
59
  },
60
60
  });
61
61
  // Ensure a user cannot like the same person multiple times
62
- likeSchema.index({ userId: 1, videoPostId: 1 }, { unique: true });
62
+ videoPostLikeSchema.index({ userId: 1, videoPostId: 1 }, { unique: true });
63
63
  // Create and export the model
64
- const VideoPostLike = mongoose_1.default.model('Like', likeSchema);
64
+ const VideoPostLike = mongoose_1.default.model('VideoPostLike', videoPostLikeSchema);
65
65
  exports.default = VideoPostLike;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armi-wave/common",
3
- "version": "1.23.36",
3
+ "version": "1.23.37",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",