From c6795a783dbad21c573b4d5bd731c3e6f96c9d98 Mon Sep 17 00:00:00 2001 From: Michael C Date: Tue, 21 Feb 2023 03:24:32 -0500 Subject: [PATCH] fix getCWS util --- src/utils/getCWSUsers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/getCWSUsers.ts b/src/utils/getCWSUsers.ts index b71821d..78c9eb7 100644 --- a/src/utils/getCWSUsers.ts +++ b/src/utils/getCWSUsers.ts @@ -5,7 +5,7 @@ export const getCWSUsers = (extID: string) => axios.post(`https://chrome.google.com/webstore/ajax/detail?pv=20210820&id=${extID}`) .then((res) => res.data.split("\n")[2]) .then((data) => JSON.parse(data)) - .then((data) => (data[1][1][0][23]).replaceAll(/,|\+/,"")) + .then((data) => (data[1][1][0][23]).replaceAll(/,|\+/g,"")) .then((data) => parseInt(data)) .catch((err) => { Logger.error(`Error getting chrome users - ${err}`);