Files
klz-cables.com/.pnpm-store/v10/files/a6/934882f72a44c2f03994d24178a65d188e52f6677c765d3cef599d9a063b8cff84906adb182c6a8420a50fcb3e43d57882a71ef7d76da93381ac073f190642
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
460 B
Plaintext

import { getNameFromDrizzleTable } from '../utilities/getNameFromDrizzleTable.js';
export const addJoinTable = ({ type, condition, joins, queryPath, table })=>{
const name = getNameFromDrizzleTable(table);
if (!joins.some((eachJoin)=>getNameFromDrizzleTable(eachJoin.table) === name)) {
joins.push({
type,
condition,
queryPath,
table
});
}
};
//# sourceMappingURL=addJoinTable.js.map