mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge pull request #3520 from Infisical/daniel/fix-project-deletion
fix(api): project deletion failing
This commit is contained in:
@@ -47,21 +47,21 @@ export const buildFindFilter =
|
|||||||
if ($in) {
|
if ($in) {
|
||||||
Object.entries($in).forEach(([key, val]) => {
|
Object.entries($in).forEach(([key, val]) => {
|
||||||
if (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) {
|
if ($notNull?.length) {
|
||||||
$notNull.forEach((key) => {
|
$notNull.forEach((key) => {
|
||||||
void bd.whereNotNull([`${tableName ? `${tableName}.` : ""}${key as string}`] as never);
|
void bd.whereNotNull(`${tableName ? `${tableName}.` : ""}${key as string}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($search) {
|
if ($search) {
|
||||||
Object.entries($search).forEach(([key, val]) => {
|
Object.entries($search).forEach(([key, val]) => {
|
||||||
if (val) {
|
if (val) {
|
||||||
void bd.whereILike([`${tableName ? `${tableName}.` : ""}${key}`] as never, val as never);
|
void bd.whereILike(`${tableName ? `${tableName}.` : ""}${key}`, val as never);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user