feat: add upcoming seasons sync and notification for sequels
This commit is contained in:
@@ -8,10 +8,12 @@ import (
|
||||
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
|
||||
"context"
|
||||
"mal/internal/database"
|
||||
"mal/internal/features/auth"
|
||||
"mal/internal/jikan"
|
||||
"mal/internal/server"
|
||||
"mal/internal/worker"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -36,6 +38,10 @@ func main() {
|
||||
authService := auth.NewService(queries)
|
||||
jikanClient := jikan.NewClient()
|
||||
|
||||
// Start background workers
|
||||
relationsWorker := worker.New(queries, jikanClient)
|
||||
go relationsWorker.Start(context.Background())
|
||||
|
||||
app := server.Config{
|
||||
DB: queries,
|
||||
JikanClient: jikanClient,
|
||||
|
||||
Reference in New Issue
Block a user