Initial commit: YouTube Studio Flow (backend, frontend, infrastructure, docs)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Processor, WorkerHost } from '@nestjs/bullmq';
|
||||
import { Job } from 'bullmq';
|
||||
import { LintingService } from '../../modules/linting/linting.service';
|
||||
import { QUEUES } from '../queues.constants';
|
||||
|
||||
@Processor(QUEUES.LINT)
|
||||
export class LintProcessor extends WorkerHost {
|
||||
constructor(private readonly lintingService: LintingService) {
|
||||
super();
|
||||
}
|
||||
|
||||
async process(job: Job<{ videoId: string }>) {
|
||||
await this.lintingService.lintVideo(job.data.videoId);
|
||||
return { linted: true };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user