Skip to content

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

remove for of with for await

Maidul Islam4a35623956e7
diff --git a/backend/.eslintrc.js b/backend/.eslintrc.js
index 1b8f846104..b23cf05ae3 100644
--- a/backend/.eslintrc.js
+++ b/backend/.eslintrc.js
@@ -38,7 +38,6 @@ module.exports = {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"no-void": "off",
- "no-await-in-loop": "off",
"consistent-return": "off", // my style
"import/order": "off", // for simple-import-order
"import/prefer-default-export": "off", // why
diff --git a/backend/src/services/identity-project/identity-project-service.ts b/backend/src/services/identity-project/identity-project-service.ts
index 0cc47a8946..13ecf8bbc4 100644
--- a/backend/src/services/identity-project/identity-project-service.ts
+++ b/backend/src/services/identity-project/identity-project-service.ts
@@ -136,7 +136,7 @@ export const identityProjectServiceFactory = ({
message: `Identity with id ${identityId} doesn't exists in project with id ${projectId}`
});
- for (const { role: requestedRoleChange } of roles) {
+ for await (const { role: requestedRoleChange } of roles) {
const { permission: rolePermission } = await permissionService.getProjectPermissionByRole(
requestedRoleChange,
projectId