Files
klz-cables.com/.pnpm-store/v10/files/b8/580c2fbb7b26e49cbbb297503968953486355bade31d450344a720080eaba07ff4507114ecb04a142975f2042dc21294023dc5f95f88a6c5b49d414675cc4a
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

23 lines
907 B
Plaintext

import { APIError } from '../../../errors/index.js';
import { createLocalReq } from '../../../utilities/createLocalReq.js';
import { findVersionByIDOperation } from '../findVersionByID.js';
export async function findGlobalVersionByIDLocal(payload, options) {
const { id, slug: globalSlug, depth, disableErrors = false, overrideAccess = true, populate, select, showHiddenFields } = 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 findVersionByIDOperation({
id,
depth,
disableErrors,
globalConfig,
overrideAccess,
populate,
req: await createLocalReq(options, payload),
select,
showHiddenFields
});
}
//# sourceMappingURL=findVersionByID.js.map