mirror of
https://github.com/apricote/Listory.git
synced 2026-02-07 02:07:03 +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
14
src/sources/jobs.ts
Normal file
14
src/sources/jobs.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { createJob } from "@apricote/nest-pg-boss";
|
||||
|
||||
export type ICrawlerSupervisorJob = {};
|
||||
export const CrawlerSupervisorJob = createJob<ICrawlerSupervisorJob>(
|
||||
"spotify-crawler-supervisor"
|
||||
);
|
||||
|
||||
export type IUpdateSpotifyLibraryJob = {};
|
||||
export const UpdateSpotifyLibraryJob = createJob<IUpdateSpotifyLibraryJob>(
|
||||
"update-spotify-library"
|
||||
);
|
||||
|
||||
export type IImportSpotifyJob = { userID: string };
|
||||
export const ImportSpotifyJob = createJob<IImportSpotifyJob>("import-spotify");
|
||||
Loading…
Add table
Add a link
Reference in a new issue