Files
klz-cables.com/.pnpm-store/v10/files/ec/997fa8379057b8d5d1a84b1bbe5dc76eb4e2619bd8fa85815c3b0b1517b6cd1b725f39237a6b18797240334fa637a2cc8a567b63caff975f55b15704e9858d
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

26 lines
953 B
Plaintext

import { APIError } from '../../../errors/index.js';
import { createLocalReq } from '../../../utilities/createLocalReq.js';
import { findVersionsOperation } from '../findVersions.js';
export async function findGlobalVersionsLocal(payload, options) {
const { slug: globalSlug, depth, limit, overrideAccess = true, page, pagination = true, populate, select, showHiddenFields, sort, where } = options;
const globalConfig = payload.globals.config.find((config)=>config.slug === globalSlug);
if (!globalConfig) {
throw new APIError(`The global with slug ${String(globalSlug)} can't be found.`);
}
return findVersionsOperation({
depth,
globalConfig,
limit,
overrideAccess,
page,
pagination,
populate,
req: await createLocalReq(options, payload),
select,
showHiddenFields,
sort,
where
});
}
//# sourceMappingURL=findVersions.js.map