add forgotten slug
This commit is contained in:
@@ -27,7 +27,7 @@ const exportController = {
|
|||||||
|
|
||||||
const events = await Event.findAll({
|
const events = await Event.findAll({
|
||||||
order: ['start_datetime'],
|
order: ['start_datetime'],
|
||||||
attributes: { exclude: ['is_visible', 'recurrent', 'createdAt', 'updatedAt', 'likes', 'boost', 'slug', 'userId', 'placeId'] },
|
attributes: { exclude: ['is_visible', 'recurrent', 'createdAt', 'likes', 'boost', 'userId', 'placeId'] },
|
||||||
where: {
|
where: {
|
||||||
is_visible: true,
|
is_visible: true,
|
||||||
recurrent: { [Op.eq]: null },
|
recurrent: { [Op.eq]: null },
|
||||||
|
|||||||
@@ -4,18 +4,19 @@ block content
|
|||||||
p 📍 Dove: #{event.place.name} - #{event.place.address}
|
p 📍 Dove: #{event.place.name} - #{event.place.address}
|
||||||
p ⏰ Quando: #{datetime(event.start_datetime)}
|
p ⏰ Quando: #{datetime(event.start_datetime)}
|
||||||
br
|
br
|
||||||
if event.media
|
if event.media && event.media.length
|
||||||
<center>
|
<center>
|
||||||
<img style="height: 89vh; margin: 0 auto;" alt="#{event.media[0].name}" src="#{config.baseurl}/media/#{event.media[0].url}" />
|
<img style="height: 89vh; margin: 0 auto;" alt="#{event.media[0].name}" src="#{config.baseurl}/media/#{event.media[0].url}" />
|
||||||
</center>
|
</center>
|
||||||
p !{event.description}
|
if event.description
|
||||||
|
p !{event.description}
|
||||||
|
|
||||||
each tag in event.tags
|
each tag in event.tags
|
||||||
span ##{tag.tag}
|
span ##{tag.tag}
|
||||||
br
|
br
|
||||||
<a href="#{config.baseurl}/event/#{event.id}">#{config.baseurl}/event/#{event.id}</a>
|
<a href="#{config.baseurl}/event/#{event.slug || event.id}">#{config.baseurl}/event/#{event.slug || event.id}</a>
|
||||||
hr
|
hr
|
||||||
if to_confirm
|
if to_confirm
|
||||||
p Puoi confermare questo evento premendo il tasto conferma a <a href="#{config.baseurl}/event/#{event.id}">questa pagina</a>
|
p Puoi confermare questo evento premendo il tasto conferma a <a href="#{config.baseurl}/event/#{event.slug || event.id}">questa pagina</a>
|
||||||
else
|
else
|
||||||
p Puoi eliminare queste notifiche <a href="#{config.baseurl}/del_notification/#{notification.remove_code}">qui</a>
|
p Puoi eliminare queste notifiche <a href="#{config.baseurl}/del_notification/#{notification.remove_code}">qui</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user