mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-25 10:12:35 +00:00
Working on new target type
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import {
|
||||
browserGatewayTarget,
|
||||
BrowserGatewayTarget,
|
||||
clients,
|
||||
clientSiteResourcesAssociationsCache,
|
||||
clientSitesAssociationsCache,
|
||||
@@ -310,3 +312,12 @@ export async function buildTargetConfigurationForNewtClient(
|
||||
udpTargets
|
||||
};
|
||||
}
|
||||
|
||||
export async function buildBrowserGatewayTargetConfigurationForNewtClient(
|
||||
siteId: number
|
||||
): Promise<BrowserGatewayTarget[]> {
|
||||
return await db
|
||||
.select()
|
||||
.from(browserGatewayTarget)
|
||||
.where(eq(browserGatewayTarget.siteId, siteId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user