jobs should accept args even if not used
This commit is contained in:
parent
7c080747ae
commit
ed5a8eb252
|
@ -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}'")
|
||||||
|
|
Loading…
Reference in New Issue