mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 06:28:15 +00:00
misc: addressed type issue with knex
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Knex, KnexTimeoutError } from "knex";
|
import { Knex, knex } from "knex";
|
||||||
|
|
||||||
import { TDbClient } from "@app/db";
|
import { TDbClient } from "@app/db";
|
||||||
import { TableName } from "@app/db/schemas";
|
import { TableName } from "@app/db/schemas";
|
||||||
@@ -110,7 +110,7 @@ export const auditLogDALFactory = (db: TDbClient) => {
|
|||||||
|
|
||||||
return docs;
|
return docs;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof KnexTimeoutError) {
|
if (error instanceof knex.KnexTimeoutError) {
|
||||||
throw new BadRequestError({
|
throw new BadRequestError({
|
||||||
error,
|
error,
|
||||||
message: "Failed to fetch audit logs due to timeout. Add more search filters."
|
message: "Failed to fetch audit logs due to timeout. Add more search filters."
|
||||||
|
|||||||
Reference in New Issue
Block a user