Skip to content

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

Lint fix

Carlos Monastyrski7e6dd5dfe040
diff --git a/backend/src/services/alert/alert-principal-scope-fns.ts b/backend/src/services/alert/alert-principal-scope-fns.ts
index 9ad448f37a..2cb893701a 100644
--- a/backend/src/services/alert/alert-principal-scope-fns.ts
+++ b/backend/src/services/alert/alert-principal-scope-fns.ts
@@ -97,12 +97,3 @@ export const getRecipientScope = (
projectId: provider.recipientPolicy?.atOrgScope ? null : (projectId ?? null),
allowEmailAddresses: Boolean(provider.recipientPolicy?.allowEmailAddresses)
});
-
-export const getAlertResourceName = async (
- provider: Pick<IResourceAlertProvider, "getResourceNames">,
- orgId: string,
- resourceId?: string | null
-): Promise<string | null> => {
- if (!resourceId || !provider.getResourceNames) return null;
- return (await provider.getResourceNames({ orgId, resourceIds: [resourceId] })).get(resourceId) ?? null;
-};