Changeset b0685a8 for database/drizzle/queries
- Timestamp:
- 01/23/26 18:27:06 (6 months ago)
- Branches:
- main
- Children:
- ad211d1
- Parents:
- 41a2f81
- File:
-
- 1 edited
-
database/drizzle/queries/components.ts (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
database/drizzle/queries/components.ts
r41a2f81 rb0685a8 959 959 if(!build || build.isApproved) return null; 960 960 961 const existing = await tx962 .select()963 .from(buildComponentsTable)964 .where(965 and(966 eq(buildComponentsTable.buildId, buildId),967 eq(buildComponentsTable.componentId, componentId)968 )969 )970 .limit(1);971 972 if (existing.length) return null;973 974 961 await tx 975 962 .insert(buildComponentsTable)
Note:
See TracChangeset
for help on using the changeset viewer.
