From ef0725439c86075ee107e9c5d71812d975b034a3 Mon Sep 17 00:00:00 2001 From: CorwinDev <88144943+CorwinDev@users.noreply.github.com> Date: Tue, 16 Aug 2022 17:00:29 +0200 Subject: [PATCH] Fixed typo --- website/routers/bot/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/routers/bot/index.js b/website/routers/bot/index.js index 5c0c545..154f84e 100644 --- a/website/routers/bot/index.js +++ b/website/routers/bot/index.js @@ -83,7 +83,7 @@ router.get('/:botID', async function (req, res) { } let referresURL = String(req.headers.referer).replace("undefined", "Unkown").split('.').join(','); await bots.updateOne({ - botID: req.params.botID + id: req.params.botID }, { $inc: { analytics_visitors: 1 @@ -97,7 +97,7 @@ router.get('/:botID', async function (req, res) { if (geo) { let CountryCode = geo.country || "TR" await bots.updateOne({ - botID: req.params.botID + id: req.params.botID }, { $inc: { [`country.${CountryCode}`]: 1 @@ -105,7 +105,7 @@ router.get('/:botID', async function (req, res) { }) } await bots.updateOne({ - botID: req.params.botID + id: req.params.botID }, { $inc: { [`analytics.${referresURL}`]: 1