Skip to content

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

feat: rabbit review changes

=c01e29b9324b
diff --git a/backend/src/lib/search-resource/db.ts b/backend/src/lib/search-resource/db.ts
index bf264c754e..fc450d9f91 100644
--- a/backend/src/lib/search-resource/db.ts
+++ b/backend/src/lib/search-resource/db.ts
@@ -76,10 +76,9 @@ const buildKnexQuery = (
return void qb.orWhereILike(el, `%${value}%`);
});
});
- break;
}
default:
- break;
+ throw new Error(`Unsupported operator: ${String(operator)}`);
}
};
diff --git a/backend/src/server/routes/v1/identity-router.ts b/backend/src/server/routes/v1/identity-router.ts
index 265afb9613..a0fe457a95 100644
--- a/backend/src/server/routes/v1/identity-router.ts
+++ b/backend/src/server/routes/v1/identity-router.ts
@@ -355,7 +355,7 @@ export const registerIdentityRouter = async (server: FastifyZodProvider) => {
})
.partial()
])
- .describe(IDENTITIES.SEARCH.search.name)
+ .describe(IDENTITIES.SEARCH.search.role)
})
.describe(IDENTITIES.SEARCH.search.desc)
.partial()