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

25 lines
861 B
Plaintext

import toSnakeCase from 'to-snake-case';
import { findMany } from './find/findMany.js';
export const find = async function find({ collection, draftsEnabled, joins, limit, locale, page = 1, pagination, req, select, sort: sortArg, where }) {
const collectionConfig = this.payload.collections[collection].config;
const sort = sortArg !== undefined && sortArg !== null ? sortArg : collectionConfig.defaultSort;
const tableName = this.tableNameMap.get(toSnakeCase(collectionConfig.slug));
return findMany({
adapter: this,
collectionSlug: collectionConfig.slug,
draftsEnabled,
fields: collectionConfig.flattenedFields,
joins,
limit,
locale,
page,
pagination,
req,
select,
sort,
tableName,
where
});
};
//# sourceMappingURL=find.js.map