I didn’t clean up the code good enough
You need to remove the word NOT on line 95. I have updated the gist.
3 Likes
I updated the script and removed word NOT on line 95 as you instructed but I still received the same error as above.
I have tested the cleaned up script but I’m not getting any errors. Since there is no use in submitting a non-working script back to the Discourse repo, we’re willing to spend one hour to take a look at this issue at no cost, so we can determine if the issue is with the script or with your database, and modify the script accordingly. In order to spend that time as good as possible we would like to test this on our infrastructure so we would need a copy of the database. If you’re ok with that, send me a PM and we’ll arrange that.
2 Likes