get confirmed tag/place only
This commit is contained in:
@@ -24,6 +24,7 @@ const eventController = {
|
|||||||
|
|
||||||
async _getMeta () {
|
async _getMeta () {
|
||||||
const places = await Place.findAll({
|
const places = await Place.findAll({
|
||||||
|
where: { confirmed: true },
|
||||||
order: [[Sequelize.literal('weigth'), 'DESC']],
|
order: [[Sequelize.literal('weigth'), 'DESC']],
|
||||||
attributes: {
|
attributes: {
|
||||||
include: [[Sequelize.fn('count', Sequelize.col('events.placeId')), 'weigth']],
|
include: [[Sequelize.fn('count', Sequelize.col('events.placeId')), 'weigth']],
|
||||||
@@ -34,6 +35,7 @@ const eventController = {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const tags = await Tag.findAll({
|
const tags = await Tag.findAll({
|
||||||
|
where: { confirmed: true },
|
||||||
raw: true,
|
raw: true,
|
||||||
order: [['weigth', 'DESC']],
|
order: [['weigth', 'DESC']],
|
||||||
attributes: {
|
attributes: {
|
||||||
|
|||||||
Reference in New Issue
Block a user