Files
klz-cables.com/.pnpm-store/v10/files/96/65641d564f7b8a387b92d6817a5e01d25144a12238b96d17598f82c0050b62e0aed831a32b9a1c9cd86c42371baaffac0990dd811c34a7dc0ba05e64128ba2
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

20 lines
452 B
Plaintext

export const docWithFilenameExists = async ({ collectionSlug, filename, prefix, req })=>{
const where = {
filename: {
equals: filename
}
};
if (prefix) {
where.prefix = {
equals: prefix
};
}
const doc = await req.payload.db.findOne({
collection: collectionSlug,
req,
where
});
return !!doc;
};
//# sourceMappingURL=docWithFilenameExists.js.map