Skip to content

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

Update index.ts

Daniel Hougaard69ef7fdf3bbe
diff --git a/backend/src/lib/knex/index.ts b/backend/src/lib/knex/index.ts
index 55d4bf399f..b1e0117098 100644
--- a/backend/src/lib/knex/index.ts
+++ b/backend/src/lib/knex/index.ts
@@ -47,21 +47,21 @@ export const buildFindFilter =
if ($in) {
Object.entries($in).forEach(([key, val]) => {
if (val) {
- void bd.whereIn([`${tableName ? `${tableName}.` : ""}${key}`] as never, val as never);
+ void bd.whereIn(`${tableName ? `${tableName}.` : ""}${key}`, val as never);
}
});
}
if ($notNull?.length) {
$notNull.forEach((key) => {
- void bd.whereNotNull([`${tableName ? `${tableName}.` : ""}${key as string}`] as never);
+ void bd.whereNotNull(`${tableName ? `${tableName}.` : ""}${key as string}`);
});
}
if ($search) {
Object.entries($search).forEach(([key, val]) => {
if (val) {
- void bd.whereILike([`${tableName ? `${tableName}.` : ""}${key}`] as never, val as never);
+ void bd.whereILike(`${tableName ? `${tableName}.` : ""}${key}`, val as never);
}
});
}