mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-01 08:16:44 +00:00
Pick client endpoint as part of the transation
This commit is contained in:
@@ -244,7 +244,8 @@ export function isIpInCidr(ip: string, cidr: string): boolean {
|
||||
}
|
||||
|
||||
export async function getNextAvailableClientSubnet(
|
||||
orgId: string
|
||||
orgId: string,
|
||||
transaction: Transaction | typeof db = db
|
||||
): Promise<string> {
|
||||
const [org] = await db.select().from(orgs).where(eq(orgs.orgId, orgId));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user