Files
klz-cables.com/.pnpm-store/v10/files/ac/91f32fdf9203c1db7ce196fe6c02ce0f999d5b937d41a8e3b61e1ed4b2b9d280bf44f96ba956b7ccfa641c690d5ecbfd94c82cd3e94bfc4712eafaaa17e62e
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

22 lines
729 B
Plaintext

export const buildAfterOperation = async (operationArgs)=>{
const { args, collection, operation, overrideAccess, result } = operationArgs;
let newResult = result;
if (args.collection.config.hooks?.afterOperation?.length) {
for (const hook of args.collection.config.hooks.afterOperation){
const hookResult = await hook({
args,
collection,
operation,
overrideAccess,
req: args.req,
result: newResult
});
if (hookResult !== undefined) {
newResult = hookResult;
}
}
}
return newResult;
};
//# sourceMappingURL=buildAfterOperation.js.map