Fixed typo
This commit is contained in:
1 parent
bd91cf9697
commit
ef0725439c
1 file changed
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user