Skip to content

Commit

Permalink
fix: issue #15 uuid parsing in mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
cyp3rius committed Dec 7, 2020
1 parent fb87952 commit 49d625c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

const parseParams = params => Object.keys(params).reduce((prev, curr) => {
const value = params[curr];
const parsedValue = isNaN(parseInt(params[curr], 10)) ? value : parseInt(params[curr], 10);
const parsedValue = isNaN(value) ? value : parseInt(value, 10);
return {
...prev,
[curr]: parsedValue,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "strapi-plugin-comments",
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7",
"description": "Strapi - Comments plugin",
"strapi": {
"name": "Comments",
Expand Down

0 comments on commit 49d625c

Please sign in to comment.