Merge watch check fix
All checks were successful
build-and-push / docker (push) Successful in 15s

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
dlawler489 2026-09-21 10:48:45 +10:00
commit 517574720e

View file

@ -184,10 +184,11 @@ async function importFound(watch, collection) {
const { rows: [live] } = await db.query('SELECT enabled FROM watched_collections WHERE id = $1', [watch.id]);
if (!live || !live.enabled) break;
const url = makerworld.designUrl(design);
try {
// While MakerWorld is waiting for you to prove you're not a robot, the
// check still brings in the models — their files wait for you.
// check still brings in the models — their files wait for you. Decided out
// here because the wait after each import depends on it.
const withFiles = Boolean(watch.fetch_files) && !downloadBlock.isBlocked('makerworld');
try {
const result = await deps.importFromUrl(url, {
projects: watch.project_id ? [watch.project_id] : [],
withFiles, // off by default: MakerWorld refuses quick bursts