Hi guys, I’m trying to log a variable on my Discourse app in a development environment. See this code snippet for reference:
postStream.get("posts").forEach((post) => {
// I want to log the `post` variable
console.log(post);
if (!post.read && postNumbers.includes(post.post_number)) {
post.set("read", true);
this.appEvents.trigger("post-stream:refresh", { id: post.get("id") });
}
});