Files
klz-cables.com/.pnpm-store/v10/files/d9/7d841e9a59283e7d941f16eff088982ff4efee32fee301203f1203eeb9cb0791234d7e2d06582c31425f9b9e246793be572d41bbabd72af030f7c9a17425cd
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
694 B
Plaintext

import { isolateObjectProperty, verifyEmailOperation } from 'payload';
export function verifyEmail(collection) {
async function resolver(_, args, context) {
if (args.locale) {
context.req.locale = args.locale;
}
if (args.fallbackLocale) {
context.req.fallbackLocale = args.fallbackLocale;
}
const options = {
api: 'GraphQL',
collection,
req: isolateObjectProperty(context.req, 'transactionID'),
token: args.token
};
const success = await verifyEmailOperation(options);
return success;
}
return resolver;
}
//# sourceMappingURL=verifyEmail.js.map