Fixed bug: ResetDemoUserWorker failed with a raised error if one of the default feeds for the demo user existed in the DB but the demo user was not subscribed to it.
It was caused by using .find to check if the demo user is subscribed, which raises an error if no record is found matching the condition. Now .find_by is used instead, which does not raise errors but returns nil instead if no matching record is found.
↧