Hi, I have tried to fix it. PR for same: https://github.com/discourse/discourse-auto-deactivate/pull/1
Thanks