feat: use provider model tags for resale

This commit is contained in:
david
2026-08-27 10:15:15 +02:00
parent 27d23dd7a4
commit 6b9f0f2284
7 changed files with 85 additions and 10 deletions

View File

@@ -298,14 +298,6 @@ async function findOrPostAdvert(
// Ignore unrelated or malformed script outputs.
}
}
const otherSeller = sameModel.find(
(candidate) => candidate.datum.supplier_pkh !== expected.supplier_pkh,
);
if (otherSeller) {
throw new Error(
`marketplace model ${expected.model} is already advertised by another supplier`,
);
}
const own = sameModel.filter(
(candidate) => candidate.datum.supplier_pkh === expected.supplier_pkh,
);