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

1 line
1.3 KiB
Plaintext

{"version":3,"sources":["../../src/queries/addJoinTable.ts"],"sourcesContent":["import { type SQL } from 'drizzle-orm'\nimport { type PgTableWithColumns } from 'drizzle-orm/pg-core'\n\nimport type { GenericTable } from '../types.js'\nimport type { BuildQueryJoinAliases } from './buildQuery.js'\n\nimport { getNameFromDrizzleTable } from '../utilities/getNameFromDrizzleTable.js'\n\nexport const addJoinTable = ({\n type,\n condition,\n joins,\n queryPath,\n table,\n}: {\n condition: SQL\n joins: BuildQueryJoinAliases\n queryPath?: string\n table: GenericTable | PgTableWithColumns<any>\n type?: 'innerJoin' | 'leftJoin' | 'rightJoin'\n}) => {\n const name = getNameFromDrizzleTable(table)\n\n if (!joins.some((eachJoin) => getNameFromDrizzleTable(eachJoin.table) === name)) {\n joins.push({ type, condition, queryPath, table })\n }\n}\n"],"names":["getNameFromDrizzleTable","addJoinTable","type","condition","joins","queryPath","table","name","some","eachJoin","push"],"mappings":"AAMA,SAASA,uBAAuB,QAAQ,0CAAyC;AAEjF,OAAO,MAAMC,eAAe,CAAC,EAC3BC,IAAI,EACJC,SAAS,EACTC,KAAK,EACLC,SAAS,EACTC,KAAK,EAON;IACC,MAAMC,OAAOP,wBAAwBM;IAErC,IAAI,CAACF,MAAMI,IAAI,CAAC,CAACC,WAAaT,wBAAwBS,SAASH,KAAK,MAAMC,OAAO;QAC/EH,MAAMM,IAAI,CAAC;YAAER;YAAMC;YAAWE;YAAWC;QAAM;IACjD;AACF,EAAC"}