octalens-mentions 0.0.7 → 0.0.8

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.
@@ -92,7 +92,7 @@ const attributes = {
92
92
  type: "string"
93
93
  },
94
94
  viewId: {
95
- type: "string"
95
+ type: "integer"
96
96
  },
97
97
  viewName: {
98
98
  type: "string"
@@ -154,7 +154,7 @@ const controller = ({ strapi }) => ({
154
154
  bookmarked: requestBody.data?.bookmarked || false,
155
155
  language: requestBody.data?.language || "",
156
156
  sentimentLabel: requestBody.data?.sentimentLabel || "",
157
- viewId: requestBody.data?.viewId ? String(requestBody.data.viewId) : "",
157
+ viewId: requestBody.data?.viewId || null,
158
158
  viewName: requestBody.data?.viewName || "",
159
159
  subreddit: requestBody.data?.subreddit || ""
160
160
  };
@@ -91,7 +91,7 @@ const attributes = {
91
91
  type: "string"
92
92
  },
93
93
  viewId: {
94
- type: "string"
94
+ type: "integer"
95
95
  },
96
96
  viewName: {
97
97
  type: "string"
@@ -153,7 +153,7 @@ const controller = ({ strapi }) => ({
153
153
  bookmarked: requestBody.data?.bookmarked || false,
154
154
  language: requestBody.data?.language || "",
155
155
  sentimentLabel: requestBody.data?.sentimentLabel || "",
156
- viewId: requestBody.data?.viewId ? String(requestBody.data.viewId) : "",
156
+ viewId: requestBody.data?.viewId || null,
157
157
  viewName: requestBody.data?.viewName || "",
158
158
  subreddit: requestBody.data?.subreddit || ""
159
159
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.7",
2
+ "version": "0.0.8",
3
3
  "keywords": [],
4
4
  "type": "commonjs",
5
5
  "exports": {