fix: update create org to properly handle tx (super admin), remove sub org incidents, remove clipping animation container for project templates ui

This commit is contained in:
Scott Wilson
2025-10-20 16:36:46 -07:00
parent 339e00dedf
commit 0b5c823390
6 changed files with 185 additions and 235 deletions
+2 -3
View File
@@ -705,10 +705,9 @@ export const orgDALFactory = (db: TDbClient) => {
}
};
const findRootOrgDetails = async (orgId: string): Promise<TOrganizations | undefined> => {
const findRootOrgDetails = async (orgId: string, tx?: Knex): Promise<TOrganizations | undefined> => {
try {
const org = await db
.replicaNode()(TableName.Organization)
const org = await (tx ?? db.replicaNode())(TableName.Organization)
.select(selectAllTableCols(TableName.Organization))
.where(
"id",