The Jobs screen only displayed an asset name when the enqueueing code stuffed assetName into the BullMQ job data. YouTube imports did that; upload-triggered proxy/thumbnail jobs didn't — so everything except YouTube showed em dashes in the Asset column. Fix it centrally: after we collect jobs from BullMQ, look up names in one bulk SELECT against the assets table for any job that has an assetId but no asset_name. Applies to /jobs, /jobs/:id, and the SSE events stream. Lookup failures fall through silently rather than 500-ing the whole list. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| ampp | ||
| db | ||
| middleware | ||
| routes | ||
| s3 | ||
| index.js | ||
| scheduler.js | ||