Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore: lint auto-format

bernie-g7ad9cecc2ee6
diff --git a/backend/src/ee/routes/v1/pam-insights-router.ts b/backend/src/ee/routes/v1/pam-insights-router.ts
index 991484e5c5..c5bb21f65b 100644
--- a/backend/src/ee/routes/v1/pam-insights-router.ts
+++ b/backend/src/ee/routes/v1/pam-insights-router.ts
@@ -151,8 +151,7 @@ export const registerPamInsightsRouter = async (server: FastifyZodProvider) => {
config: { rateLimit: readLimit },
schema: {
operationId: "getPamInsightsUpcomingRotations",
- description:
- "Get accounts with a configured rotation schedule, ordered by next rotation time (capped at 100)",
+ description: "Get accounts with a configured rotation schedule, ordered by next rotation time (capped at 100)",
security: [{ bearerAuth: [] }],
querystring: z.object({
projectId: z.string().trim()
diff --git a/backend/src/ee/services/pam-account/pam-account-dal.ts b/backend/src/ee/services/pam-account/pam-account-dal.ts
index 1f56dbe060..bca7b64da5 100644
--- a/backend/src/ee/services/pam-account/pam-account-dal.ts
+++ b/backend/src/ee/services/pam-account/pam-account-dal.ts
@@ -311,14 +311,10 @@ export const pamAccountDALFactory = (db: TDbClient) => {
// a synthetic "domain" type instead of being silently dropped from the breakdown.
const rows = (await (tx || db.replicaNode())(TableName.PamAccount)
.leftJoin(TableName.PamResource, `${TableName.PamAccount}.resourceId`, `${TableName.PamResource}.id`)
- .select(
- db.raw(`COALESCE("${TableName.PamResource}"."resourceType", 'domain') as "resourceType"`)
- )
+ .select(db.raw(`COALESCE("${TableName.PamResource}"."resourceType", 'domain') as "resourceType"`))
.count(`${TableName.PamAccount}.id as count`)
.where(`${TableName.PamAccount}.projectId`, projectId)
- .groupByRaw(
- `COALESCE("${TableName.PamResource}"."resourceType", 'domain')`
- )) as unknown as {
+ .groupByRaw(`COALESCE("${TableName.PamResource}"."resourceType", 'domain')`)) as unknown as {
resourceType: string;
count: string | number;
}[];
diff --git a/backend/src/ee/services/pam-session/pam-session-dal.ts b/backend/src/ee/services/pam-session/pam-session-dal.ts
index cf963e3569..7c376e4c64 100644
--- a/backend/src/ee/services/pam-session/pam-session-dal.ts
+++ b/backend/src/ee/services/pam-session/pam-session-dal.ts
@@ -103,9 +103,10 @@ export const pamSessionDALFactory = (db: TDbClient) => {
.where("projectId", projectId)
.where("createdAt", ">=", startDate)
.groupByRaw(`("createdAt" AT TIME ZONE 'UTC')::date`)
- .orderByRaw(
- `("createdAt" AT TIME ZONE 'UTC')::date asc`
- )) as unknown as { date: string; count: string | number }[];
+ .orderByRaw(`("createdAt" AT TIME ZONE 'UTC')::date asc`)) as unknown as {
+ date: string;
+ count: string | number;
+ }[];
return rows.map((row) => ({ date: String(row.date), count: Number(row.count) }));
};