From 49d625c85adfd81504fb784a09a3740a17fe8587 Mon Sep 17 00:00:00 2001 From: Mateusz Ziarko Date: Mon, 7 Dec 2020 15:58:38 +0100 Subject: [PATCH] fix: issue #15 uuid parsing in mongo --- controllers/comments.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/comments.js b/controllers/comments.js index 975e554..bdeed99 100644 --- a/controllers/comments.js +++ b/controllers/comments.js @@ -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, diff --git a/package.json b/package.json index eb081b8..f2960ed 100644 --- a/package.json +++ b/package.json @@ -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",