fix img / comments img
This commit is contained in:
@@ -189,7 +189,7 @@ const eventController = {
|
||||
[Tag, 'weigth', 'DESC']
|
||||
],
|
||||
include: [
|
||||
{ model: Tag, required: false, attributes: ['tag', 'weigth', 'color'] },
|
||||
{ model: Tag, required: false, attributes: ['tag', 'weigth'] },
|
||||
{ model: Place, required: false, attributes: ['id', 'name', 'address'] }
|
||||
]
|
||||
})
|
||||
|
||||
@@ -26,7 +26,7 @@ module.exports = {
|
||||
return -1
|
||||
} catch(e) {}
|
||||
|
||||
await db.sequelize.sync({force: true}).catch(e => {
|
||||
await db.sequelize.sync().catch(e => {
|
||||
consola.error('Error creating tables', e)
|
||||
return -1
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user