Assign Badges sending a notification on every page visit; help!

@amandam Thank you so much! It would be a huge help… I’ve been at it for 10+ hours straight and just can’t seem to solve this.

The only thing I can think of is that maybe there is a way to specify that in my topPostOwners array and my viewsPostOwners array that I ONLY want that to trigger the current member. Maybe something to do with a getCurrentMember?

That way I could trigger all of this code on a specific page that users could go visit to claim their badge.

Very new to all of this so I really appreciate your help.