Files
klz-cables.com/.pnpm-store/v10/files/c6/bef017eda9efd49a514593c88acde1f247f4acabaf36652dec4022b15783221ec6324856840f22e75f9d755fb1a4f4b7ff8ffd59910a0c276eed0408791b62
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

19 lines
807 B
Plaintext

import { APIError } from '../../../errors/index.js';
import { createLocalReq } from '../../../utilities/createLocalReq.js';
import { countGlobalVersionsOperation } from '../countGlobalVersions.js';
export async function countGlobalVersionsLocal(payload, options) {
const { disableErrors, global: globalSlug, overrideAccess = true, where } = options;
const global = payload.globals.config.find(({ slug })=>slug === globalSlug);
if (!global) {
throw new APIError(`The global with slug ${String(globalSlug)} can't be found. Count Global Versions Operation.`);
}
return countGlobalVersionsOperation({
disableErrors,
global,
overrideAccess,
req: await createLocalReq(options, payload),
where
});
}
//# sourceMappingURL=countVersions.js.map