Changeset dda6f51 for database/drizzle/queries/components.ts
- Timestamp:
- 12/29/25 03:57:02 (6 months ago)
- Branches:
- main
- Children:
- f46bf5c
- Parents:
- 3870834
- File:
-
- 1 edited
-
database/drizzle/queries/components.ts (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
database/drizzle/queries/components.ts
r3870834 rdda6f51 12 12 } from "../schema"; 13 13 import {and, asc, desc, eq, ilike, SQL, sql} from "drizzle-orm"; 14 import {typeConfigMap, ComponentType } from "../util/componentFieldConfig";14 import {typeConfigMap, ComponentType, requiredFields} from "../util/componentFieldConfig"; 15 15 import {AnyPgColumn} from "drizzle-orm/pg-core"; 16 16 import {inArray} from "drizzle-orm/sql/expressions/conditions"; … … 101 101 ...component, 102 102 details: details 103 }; 104 } 105 106 export async function getDetailsForNewComponent(componentType: string) { 107 const config = typeConfigMap[componentType as ComponentType]; 108 109 return { 110 type: componentType as ComponentType, 111 requiredFields: requiredFields[componentType as ComponentType] ?? [], 112 multiTables: config.multiTables ?? {}, 103 113 }; 104 114 }
Note:
See TracChangeset
for help on using the changeset viewer.
