This commit is contained in:
Jason Rasmussen
2024-04-16 21:08:36 -04:00
parent 14b1425e98
commit 3fd5a32a7d
22 changed files with 665 additions and 2 deletions
+8
View File
@@ -16,6 +16,7 @@ import {
JobStatus,
QueueCleanType,
QueueName,
WorkflowTriggerType,
} from 'src/interfaces/job.interface';
import { ILoggerRepository } from 'src/interfaces/logger.interface';
import { IMetricRepository } from 'src/interfaces/metric.interface';
@@ -294,6 +295,13 @@ export class JobService {
if (asset && asset.isVisible) {
this.eventRepository.clientSend(ClientEvent.UPLOAD_SUCCESS, asset.ownerId, mapAsset(asset));
}
if (asset) {
await this.jobRepository.queue({
name: JobName.WORKFLOW_TRIGGER,
data: { type: WorkflowTriggerType.ASSET_UPLOAD, data: { assetId: asset.id } },
});
}
break;
}