server passes in the db to cron now

This commit is contained in:
James Tombleson 2024-05-01 18:27:03 -07:00
parent ddf50077b5
commit c44d7f20bc

View File

@ -11,7 +11,7 @@ import (
"git.jamestombleson.com/jtom38/newsbot-api/docs"
"git.jamestombleson.com/jtom38/newsbot-api/internal/database"
"git.jamestombleson.com/jtom38/newsbot-api/internal/handler/v1"
v1 "git.jamestombleson.com/jtom38/newsbot-api/internal/handler/v1"
"git.jamestombleson.com/jtom38/newsbot-api/internal/services"
"git.jamestombleson.com/jtom38/newsbot-api/internal/services/cron"
)
@ -44,7 +44,7 @@ func main() {
queries := database.New(db)
c := cron.NewScheduler(ctx)
c := cron.NewScheduler(ctx, db)
c.Start()
server := v1.NewServer(ctx, queries, configs, db)