This commit is contained in:
BoHung Chiu 2021-11-29 10:53:39 +08:00
parent 1d8b2b04b6
commit 5bb81c549b
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,9 @@ require "rss"
class AnnouncementFeedsController < ApplicationController
include Admin::AnnouncementsHelper
def feed
Thread.new do
BulletinFeedCache.all_of({:invalid_date.ne=>nil,:invalid_date.lte => Time.now}).delete_all
end
uid = params[:uid]
startdt = params[:start].blank? ? nil : params[:start]
enddt = params[:end].blank? ? nil : params[:end]