DEV Community

loading...

Discussion on: Howto: Create a daily email of website visitors using NodeJS and Web-stat

Collapse
shnydercom profile image
Jonathan Schneider (shnyder)

node-red really makes tutorials shorter ;)

I use this template to catch errors and produce an error message. Does it help?
image of a mustache template

Collapse
liukonen profile image
Luke Liukonen Author

For me, it was trying to replace the loop I have with a template... I tried #visit .... /visit to generate an email body with no luck

Collapse
shnydercom profile image
Jonathan Schneider (shnyder)

what about #payload.recent_visits.visit ... /payload.recent_visits.visit or another combination of the sub-parameters?

Thread Thread
liukonen profile image
Luke Liukonen Author

That worked!!! It might have been that I mistyped a param last night, but I got it working today. I was also trying to use the property attribute wrong on my initial attempt last night too, so that didn't help!

it worked