Fixing issue with notification cron

* Updated getAllActive to search by type