From 4d8b432b335f70758d5d4bcd3a0f7a1abb4ecc51 Mon Sep 17 00:00:00 2001 From: Nefrace Date: Mon, 12 Apr 2021 23:15:59 +0300 Subject: [PATCH] another naming fixes --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index fea55e0..c16a484 100644 --- a/index.js +++ b/index.js @@ -324,7 +324,7 @@ bot.onText(/^\/top/, async msg => { if (!chat || chat.main) { 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 currentPlace = 1 let lastPlace = 0 @@ -365,7 +365,7 @@ bot.onText(/^\/bottom/, async msg => { if (!chat || chat.main) { 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 currentPlace = 1 let lastPlace = 0