Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/trigger/triggerCreateContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ export interface TriggerCreateContentPayload {
upscale: boolean;
/** GitHub repo URL so the task can fetch artist files. */
githubRepo: string;
/** Optional list of song slugs to pick from. When omitted, all songs are eligible. */
songs?: string[];
}

/**
* Triggers the create-content task in Trigger.dev.
*
* @param payload
*/
export async function triggerCreateContent(payload: TriggerCreateContentPayload) {
const handle = await tasks.trigger(CREATE_CONTENT_TASK_ID, payload);
Expand Down
Loading