mirror of
https://github.com/anatolykopyl/vk-bingo.git
synced 2026-03-26 04:44:26 +00:00
🐛 Исправил ошибку с типом данных
This commit is contained in:
@@ -118,7 +118,7 @@ app.get('/card', async (req, res) => {
|
||||
})
|
||||
|
||||
app.get('/meme', async (req, res) => {
|
||||
const amount = req.query.amount || 1
|
||||
const amount = Number(req.query.amount) || 1
|
||||
try {
|
||||
let cards = await cardsCollection.aggregate([{ $sample: { size: amount } }]).toArray()
|
||||
// Удаляем конфиденциальную информацию
|
||||
|
||||
Reference in New Issue
Block a user