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

14 lines
453 B
Plaintext

import { FileUploadError } from '../errors/index.js';
import { saveBufferToFile } from './saveBufferToFile.js';
export const uploadFiles = async (payload, files, req)=>{
try {
await Promise.all(files.map(async ({ buffer, path })=>{
await saveBufferToFile(buffer, path);
}));
} catch (err) {
payload.logger.error(err);
throw new FileUploadError(req.t);
}
};
//# sourceMappingURL=uploadFiles.js.map