jobs should accept args even if not used

This commit is contained in:
Joffrey JAFFEUX 2018-08-10 16:07:01 +02:00
parent 7c080747ae
commit ed5a8eb252
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ module Jobs
class ::DiscourseSimpleCalendar::EnsuredExpiredEventDestruction < Jobs::Scheduled class ::DiscourseSimpleCalendar::EnsuredExpiredEventDestruction < Jobs::Scheduled
every 6.hours every 6.hours
def execute def execute(args)
PostCustomField PostCustomField
.joins(:post) .joins(:post)
.where("post_custom_fields.name = '#{::DiscourseSimpleCalendar::CALENDAR_DETAILS_CUSTOM_FIELD}'") .where("post_custom_fields.name = '#{::DiscourseSimpleCalendar::CALENDAR_DETAILS_CUSTOM_FIELD}'")