mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(api): use nest-pg-boss for spotify interactions
This commit is contained in:
parent
cd672a408e
commit
b9f92bbdfa
9 changed files with 314 additions and 72 deletions
|
|
@ -1,9 +1,22 @@
|
|||
import { Module } from "@nestjs/common";
|
||||
import { PGBossModule } from "@apricote/nest-pg-boss";
|
||||
import {
|
||||
CrawlerSupervisorJob,
|
||||
ImportSpotifyJob,
|
||||
UpdateSpotifyLibraryJob,
|
||||
} from "./jobs";
|
||||
import { SchedulerService } from "./scheduler.service";
|
||||
import { SpotifyModule } from "./spotify/spotify.module";
|
||||
|
||||
@Module({
|
||||
imports: [SpotifyModule],
|
||||
imports: [
|
||||
SpotifyModule,
|
||||
PGBossModule.forJobs([
|
||||
CrawlerSupervisorJob,
|
||||
ImportSpotifyJob,
|
||||
UpdateSpotifyLibraryJob,
|
||||
]),
|
||||
],
|
||||
providers: [SchedulerService],
|
||||
})
|
||||
export class SourcesModule {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue