Fix test
This commit is contained in:
parent
910eafda63
commit
c280ad1850
2 changed files with 2 additions and 2 deletions
|
@ -27,6 +27,6 @@ class UpdateStatusExpirationService < BaseService
|
||||||
expired_at = base_time + due
|
expired_at = base_time + due
|
||||||
expired_status = ScheduledExpirationStatus.create!(account: status.account, status: status, scheduled_at: expired_at)
|
expired_status = ScheduledExpirationStatus.create!(account: status.account, status: status, scheduled_at: expired_at)
|
||||||
|
|
||||||
RemoveExpiredStatusWorker.perform_at(expired_at, expired_status.id) if due < PostStatusService::MIN_SCHEDULE_OFFSET
|
RemoveExpiredStatusWorker.perform_at(expired_at, expired_status.id) if due < ScheduledStatus::MINIMUM_OFFSET
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -31,7 +31,7 @@ class Scheduler::ScheduledStatusesScheduler
|
||||||
end
|
end
|
||||||
|
|
||||||
def expired_statuses
|
def expired_statuses
|
||||||
ScheduledExpirationStatus.where(scheduled_at: ..Time.now.utc + PostStatusService::MIN_SCHEDULE_OFFSET)
|
ScheduledExpirationStatus.where(scheduled_at: ..time_due_at)
|
||||||
end
|
end
|
||||||
|
|
||||||
def publish_scheduled_announcements!
|
def publish_scheduled_announcements!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue