diff --git a/module/background/background.go b/module/background/background.go index 2ab737b..067b5a3 100644 --- a/module/background/background.go +++ b/module/background/background.go @@ -9,7 +9,7 @@ var c *cron.Cron // SetBackground - func SetBackground() { c = cron.New() - c.AddFunc("0 */2 * * * *", readFacebookPage) + c.AddFunc("0 * * * * *", readFacebookPage) c.AddFunc("*/20 * * * * *", getStreamStatus) c.AddFunc("*/5 * * * * *", checkOpay) c.AddFunc("0 0 */3 * * *", checkYoutubeSubscribe) diff --git a/module/background/facebook.go b/module/background/facebook.go index ec177a4..314b7e8 100644 --- a/module/background/facebook.go +++ b/module/background/facebook.go @@ -49,6 +49,7 @@ func readFacebookPage() { } func getPageHTML(page *model.FacebookPage) { + fmt.Println("run page ::::: ", page.ID) err := page.GetGroups() if err != nil { fmt.Println("get page group err ", err)