rummaging around on discord, I found something
.where(p => p.type == "[[leisure]]")
has to be changed to
.where(p => String(p.type).includes("leisure"))
that works… for now.
If someone has a better more elegant solution, please let me know.
Thanks to all who have stopped by
…and good night