mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-13 19:47:45 +00:00
Fix a few consts to lets
This commit is contained in:
@@ -238,7 +238,7 @@ export async function validateOidcCallback(
|
|||||||
const defaultRoleMapping = existingIdp.idp.defaultRoleMapping;
|
const defaultRoleMapping = existingIdp.idp.defaultRoleMapping;
|
||||||
const defaultOrgMapping = existingIdp.idp.defaultOrgMapping;
|
const defaultOrgMapping = existingIdp.idp.defaultOrgMapping;
|
||||||
|
|
||||||
const userOrgInfo: { orgId: string; roleId: number }[] = [];
|
let userOrgInfo: { orgId: string; roleId: number }[] = [];
|
||||||
for (const org of allOrgs) {
|
for (const org of allOrgs) {
|
||||||
const [idpOrgRes] = await db
|
const [idpOrgRes] = await db
|
||||||
.select()
|
.select()
|
||||||
@@ -314,7 +314,7 @@ export async function validateOidcCallback(
|
|||||||
|
|
||||||
let existingUserId = existingUser?.userId;
|
let existingUserId = existingUser?.userId;
|
||||||
|
|
||||||
const orgUserCounts: { orgId: string; userCount: number }[] = [];
|
let orgUserCounts: { orgId: string; userCount: number }[] = [];
|
||||||
|
|
||||||
// sync the user with the orgs and roles
|
// sync the user with the orgs and roles
|
||||||
await db.transaction(async (trx) => {
|
await db.transaction(async (trx) => {
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ export async function pickPort(siteId: number): Promise<{
|
|||||||
|
|
||||||
// TODO: is this all inefficient?
|
// TODO: is this all inefficient?
|
||||||
// Fetch targets for all resources of this site
|
// Fetch targets for all resources of this site
|
||||||
const targetIps: string[] = [];
|
let targetIps: string[] = [];
|
||||||
const targetInternalPorts: number[] = [];
|
let targetInternalPorts: number[] = [];
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
resourcesRes.map(async (resource) => {
|
resourcesRes.map(async (resource) => {
|
||||||
const targetsRes = await db
|
const targetsRes = await db
|
||||||
|
|||||||
Reference in New Issue
Block a user