mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-15 23:17:55 +02:00
Working on multi client
This commit is contained in:
parent
15eb666394
commit
619cfef1c7
1 changed files with 0 additions and 2 deletions
|
@ -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),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue