Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update secret-scanning-dal.ts
Daniel Hougaard7142e7a6c650
diff --git a/backend/src/ee/services/secret-scanning/secret-scanning-dal.ts b/backend/src/ee/services/secret-scanning/secret-scanning-dal.tsindex cef6f31764..84ba01a591 100644--- a/backend/src/ee/services/secret-scanning/secret-scanning-dal.ts+++ b/backend/src/ee/services/secret-scanning/secret-scanning-dal.ts@@ -1,4 +1,4 @@-import { Knex, KnexTimeoutError } from "knex";+import knex, { Knex } from "knex";import { TDbClient } from "@app/db";import { TableName, TSecretScanningGitRisksInsert } from "@app/db/schemas";@@ -76,7 +76,7 @@ export const secretScanningDALFactory = (db: TDbClient) => {.sort((a, b) => a.localeCompare(b))};} catch (error) {- if (error instanceof KnexTimeoutError) {+ if (error instanceof knex.KnexTimeoutError) {throw new GatewayTimeoutError({error,message: "Failed to fetch audit logs due to timeout. Add more search filters."