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

27 lines
924 B
Plaintext

import { status as httpStatus } from 'http-status';
import { getRequestCollectionWithID } from '../../utilities/getRequestEntity.js';
import { headersWithCors } from '../../utilities/headersWithCors.js';
import { parseParams } from '../../utilities/parseParams/index.js';
import { findVersionByIDOperation } from '../operations/findVersionByID.js';
export const findVersionByIDHandler = async (req)=>{
const { depth, populate, select, trash } = parseParams(req.query);
const { id, collection } = getRequestCollectionWithID(req);
const result = await findVersionByIDOperation({
id,
collection,
depth,
populate,
req,
select,
trash
});
return Response.json(result, {
headers: headersWithCors({
headers: new Headers(),
req
}),
status: httpStatus.OK
});
};
//# sourceMappingURL=findVersionByID.js.map