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

20 lines
813 B
Plaintext

import { APIError } from '../../../errors/index.js';
import { createLocalReq } from '../../../utilities/createLocalReq.js';
import { forgotPasswordOperation } from '../forgotPassword.js';
export async function forgotPasswordLocal(payload, options) {
const { collection: collectionSlug, data, disableEmail, expiration, overrideAccess = true } = options;
const collection = payload.collections[collectionSlug];
if (!collection) {
throw new APIError(`The collection with slug ${String(collectionSlug)} can't be found. Forgot Password Operation.`);
}
return forgotPasswordOperation({
collection,
data,
disableEmail,
expiration,
overrideAccess,
req: await createLocalReq(options, payload)
});
}
//# sourceMappingURL=forgotPassword.js.map