mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-05 18:26:40 +00:00
Working on multi client
This commit is contained in:
@@ -41,7 +41,6 @@ function queryClients(orgId: string, accessibleClientIds: number[]) {
|
|||||||
.select({
|
.select({
|
||||||
clientId: clients.clientId,
|
clientId: clients.clientId,
|
||||||
orgId: clients.orgId,
|
orgId: clients.orgId,
|
||||||
siteId: clients.siteId,
|
|
||||||
siteNiceId: sites.niceId,
|
siteNiceId: sites.niceId,
|
||||||
name: clients.name,
|
name: clients.name,
|
||||||
pubKey: clients.pubKey,
|
pubKey: clients.pubKey,
|
||||||
@@ -55,7 +54,6 @@ function queryClients(orgId: string, accessibleClientIds: number[]) {
|
|||||||
})
|
})
|
||||||
.from(clients)
|
.from(clients)
|
||||||
.leftJoin(orgs, eq(clients.orgId, orgs.orgId))
|
.leftJoin(orgs, eq(clients.orgId, orgs.orgId))
|
||||||
.innerJoin(sites, eq(clients.siteId, sites.siteId))
|
|
||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
inArray(clients.clientId, accessibleClientIds),
|
inArray(clients.clientId, accessibleClientIds),
|
||||||
|
|||||||
Reference in New Issue
Block a user