Skip to content

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

await for

Matheus Nogueira0be6b4ec69a0
diff --git a/backend/src/ee/services/honey-token/honey-token-service.ts b/backend/src/ee/services/honey-token/honey-token-service.ts
index f1032c37cb..7e5484d72a 100644
--- a/backend/src/ee/services/honey-token/honey-token-service.ts
+++ b/backend/src/ee/services/honey-token/honey-token-service.ts
@@ -806,8 +806,8 @@ export const honeyTokenServiceFactory = ({
}
const rawEvents = Array.isArray(payload) ? (payload as unknown[]) : [payload];
- /* eslint-disable no-await-in-loop, no-continue */
- for (const rawEvent of rawEvents) {
+ /* eslint-disable no-continue */
+ for await (const rawEvent of rawEvents) {
const wrapped = rawEvent as { event?: unknown };
const parsed = AwsHoneyTokenEventMetadataSchema.safeParse(wrapped.event ?? rawEvent);
if (!parsed.success) {
@@ -834,7 +834,7 @@ export const honeyTokenServiceFactory = ({
void sendTriggerNotification({ orgId, honeyToken, eventMetadata: parsed.data });
}
}
- /* eslint-enable no-await-in-loop, no-continue */
+ /* eslint-enable no-continue */
return { acknowledged: true };
};