Skip to content

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

add role index

Maidul Islam91c1aca5888c
diff --git a/backend/src/models/role.ts b/backend/src/models/role.ts
index 4fe6cfc39b..643acedcd9 100644
--- a/backend/src/models/role.ts
+++ b/backend/src/models/role.ts
@@ -48,6 +48,8 @@ const roleSchema = new Schema<IRole>(
}
);
+roleSchema.index({ organization: 1, workspace: 1 });
+
const Role = model<IRole>("Role", roleSchema);
export default Role;