codebase-models 2.0.9 → 2.1.1

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.
@@ -42,7 +42,7 @@ mongoose_1.default.plugin(mongoose_slug_updater_1.default);
42
42
  const UrltargetingsSchema = new mongoose_1.Schema({
43
43
  iid: {
44
44
  type: String,
45
- unique: true,
45
+ trim: true,
46
46
  },
47
47
  type: {
48
48
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebase-models",
3
- "version": "2.0.9",
3
+ "version": "2.1.1",
4
4
  "description": "Common models for codebase",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@ export interface IPage extends Document {
31
31
  const UrltargetingsSchema = new Schema<IUrltargetings>({
32
32
  iid: {
33
33
  type: String,
34
- unique: true,
34
+ trim: true,
35
35
  },
36
36
  type: {
37
37
  type: String,