mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
Fix lint errors
This commit is contained in:
@@ -47,8 +47,8 @@ export async function updateProxyResources(
|
||||
for (const [resourceNiceId, resourceData] of Object.entries(
|
||||
config["proxy-resources"]
|
||||
)) {
|
||||
let targetsToUpdate: Target[] = [];
|
||||
let healthchecksToUpdate: TargetHealthCheck[] = [];
|
||||
const targetsToUpdate: Target[] = [];
|
||||
const healthchecksToUpdate: TargetHealthCheck[] = [];
|
||||
let resource: Resource;
|
||||
|
||||
async function createTarget( // reusable function to create a target
|
||||
|
||||
@@ -651,7 +651,7 @@ export class UsageService {
|
||||
}
|
||||
}
|
||||
|
||||
return result
|
||||
return result;
|
||||
} catch (error) {
|
||||
logger.error(
|
||||
`Failed to get usage for ${orgId}/${featureId}:`,
|
||||
|
||||
@@ -155,7 +155,7 @@ export const privateConfigSchema = z
|
||||
localFilePath: z.string()
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
});
|
||||
|
||||
export function readPrivateConfigFile() {
|
||||
if (build == "oss") {
|
||||
|
||||
@@ -59,7 +59,7 @@ export async function moveEmailToAudience(
|
||||
if (data) {
|
||||
logger.debug(
|
||||
`Added email ${email} to audience ${audienceId} with contact ID ${data.id}`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
const otherAudiences = Object.values(AudienceIds).filter(
|
||||
|
||||
@@ -24,7 +24,7 @@ export default function createPathRewriteMiddleware(
|
||||
switch (rewritePathType) {
|
||||
case "exact":
|
||||
// Replace the path with the exact rewrite path
|
||||
let exactPattern = `^${escapeRegex(path)}$`;
|
||||
const exactPattern = `^${escapeRegex(path)}$`;
|
||||
middlewares[middlewareName] = {
|
||||
replacePathRegex: {
|
||||
regex: exactPattern,
|
||||
|
||||
Reference in New Issue
Block a user