aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/rocketchat
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-31 16:25:57 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-31 16:25:57 +0530
commitdfae2d231e39c81827d08fd8834d736c5b3005b1 (patch)
tree5037b401e7de837fdd6046a3c61ac76aed240e6e /recipes/rocketchat
parentNew recipe: odoo (diff)
downloadferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.tar.gz
ferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.tar.zst
ferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.zip
refactor: Use Ferdi.safeParseInt to ensure that parsing is done consistently in all recipes.
Diffstat (limited to 'recipes/rocketchat')
-rw-r--r--recipes/rocketchat/package.json2
-rw-r--r--recipes/rocketchat/webview.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes/rocketchat/package.json b/recipes/rocketchat/package.json
index f4dedcf..111efbd 100644
--- a/recipes/rocketchat/package.json
+++ b/recipes/rocketchat/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "rocketchat", 2 "id": "rocketchat",
3 "name": "Rocket.Chat", 3 "name": "Rocket.Chat",
4 "version": "1.1.0", 4 "version": "1.1.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://{teamId}.rocket.chat", 7 "serviceURL": "https://{teamId}.rocket.chat",
diff --git a/recipes/rocketchat/webview.js b/recipes/rocketchat/webview.js
index 1702c74..d3d0a27 100644
--- a/recipes/rocketchat/webview.js
+++ b/recipes/rocketchat/webview.js
@@ -41,7 +41,7 @@ module.exports = Ferdi => {
41 let directMessagesCount = 0; 41 let directMessagesCount = 0;
42 42
43 for (const directMessage of directMessages) { 43 for (const directMessage of directMessages) {
44 directMessagesCount += parseInt(directMessage.textContent, 10); 44 directMessagesCount += Ferdi.safeParseInt(directMessage.textContent);
45 } 45 }
46 46
47 const indirectMessagesCount = Math.round( 47 const indirectMessagesCount = Math.round(