Skip to content

Commit

Permalink
redirect to listado page
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed May 11, 2024
1 parent 96848b8 commit 4d1e385
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ mongoose.connect(config.database).then(() => {

const listener = app.listen(process.env.PORT, ()=> {
console.log('Listening on port ', + listener.address().port)
app.get('/', (req, res) => res.send('Live!'))
app.get('/', (req, res) => res.redirect('/listado'))
})
})
})
Expand Down
8 changes: 1 addition & 7 deletions handlers/tempsDeFlors.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ class TempsDeFlors {
async getTotalSpot (target, bot, roomId) {
const spots = await TempsDeFlorsService.getTFSpots(roomId)
const count = spots.filter((s) => s.visited).length
bot.say(target, `${config.externalUrl}/listado (Vistos ${count}/${spots.length} puntos)`)
}

async getTotalSpot (target, bot, roomId) {
const spots = await TempsDeFlorsService.getTFSpots(roomId)
const count = spots.filter((s) => s.visited).length
bot.say(target, `${config.externalUrl}/listado (Vistos ${count}/${spots.length} puntos)`)
bot.say(target, `${config.externalUrl} (Vistos ${count}/${spots.length} puntos)`)
}

async setVisited (target, text, bot, roomId, isVisited) {
Expand Down

0 comments on commit 4d1e385

Please sign in to comment.