mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-02 00:55:48 +02:00
add list domains for org endpoint
This commit is contained in:
parent
851bedb2e5
commit
82f990eb8b
7 changed files with 136 additions and 7 deletions
|
@ -89,7 +89,10 @@ export async function createOrg(
|
|||
let org: Org | null = null;
|
||||
|
||||
await db.transaction(async (trx) => {
|
||||
const allDomains = await trx.select().from(domains);
|
||||
const allDomains = await trx
|
||||
.select()
|
||||
.from(domains)
|
||||
.where(eq(domains.configManaged, true));
|
||||
|
||||
const newOrg = await trx
|
||||
.insert(orgs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue