mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor
This commit is contained in:
parent
d6f647ccd2
commit
20524e92c0
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ module.exports = {
|
|||
const Event = require('./server/api/models/event')
|
||||
const events = await Event.findAll({where: { is_visible: true }})
|
||||
return events.map(e => `/event/${e.slug}`)
|
||||
} else {
|
||||
return []
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue