another naming fixes
This commit is contained in:
parent
7347455be4
commit
4d8b432b33
4
index.js
4
index.js
|
@ -324,7 +324,7 @@ bot.onText(/^\/top/, async msg => {
|
||||||
if (!chat || chat.main) {
|
if (!chat || chat.main) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const users = await User.find({karma:{$gt:0}}).sort({karma: -1}).select({name: 1, karma: 1, uid: 1})
|
const users = await User.find({karma:{$gt:0}}).sort({karma: -1}).select({full_name: 1, karma: 1, uid: 1})
|
||||||
let message = ""
|
let message = ""
|
||||||
let currentPlace = 1
|
let currentPlace = 1
|
||||||
let lastPlace = 0
|
let lastPlace = 0
|
||||||
|
@ -365,7 +365,7 @@ bot.onText(/^\/bottom/, async msg => {
|
||||||
if (!chat || chat.main) {
|
if (!chat || chat.main) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const users = await User.find({karma:{$lt:0}}).sort({karma: 1}).select({name: 1, karma: 1, uid: 1})
|
const users = await User.find({karma:{$lt:0}}).sort({karma: 1}).select({full_name: 1, karma: 1, uid: 1})
|
||||||
let message = ""
|
let message = ""
|
||||||
let currentPlace = 1
|
let currentPlace = 1
|
||||||
let lastPlace = 0
|
let lastPlace = 0
|
||||||
|
|
Loading…
Reference in New Issue