Fixed typo

This commit is contained in:
CorwinDev committed 2022-08-16 17:00:29 +02:00
1 parent bd91cf9697
commit ef0725439c
1 file changed
+3 -3
+3 -3
View File
@@ -83,7 +83,7 @@ router.get('/:botID', async function (req, res) {
} }
let referresURL = String(req.headers.referer).replace("undefined", "Unkown").split('.').join(','); let referresURL = String(req.headers.referer).replace("undefined", "Unkown").split('.').join(',');
await bots.updateOne({ await bots.updateOne({
botID: req.params.botID id: req.params.botID
}, { }, {
$inc: { $inc: {
analytics_visitors: 1 analytics_visitors: 1
@@ -97,7 +97,7 @@ router.get('/:botID', async function (req, res) {
if (geo) { if (geo) {
let CountryCode = geo.country || "TR" let CountryCode = geo.country || "TR"
await bots.updateOne({ await bots.updateOne({
botID: req.params.botID id: req.params.botID
}, { }, {
$inc: { $inc: {
[`country.${CountryCode}`]: 1 [`country.${CountryCode}`]: 1
@@ -105,7 +105,7 @@ router.get('/:botID', async function (req, res) {
}) })
} }
await bots.updateOne({ await bots.updateOne({
botID: req.params.botID id: req.params.botID
}, { }, {
$inc: { $inc: {
[`analytics.${referresURL}`]: 1 [`analytics.${referresURL}`]: 1