mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 23:28:31 +00:00
remove for of with for await
This commit is contained in:
@@ -38,7 +38,6 @@ module.exports = {
|
|||||||
"@typescript-eslint/no-empty-function": "off",
|
"@typescript-eslint/no-empty-function": "off",
|
||||||
"@typescript-eslint/no-unsafe-enum-comparison": "off",
|
"@typescript-eslint/no-unsafe-enum-comparison": "off",
|
||||||
"no-void": "off",
|
"no-void": "off",
|
||||||
"no-await-in-loop": "off",
|
|
||||||
"consistent-return": "off", // my style
|
"consistent-return": "off", // my style
|
||||||
"import/order": "off", // for simple-import-order
|
"import/order": "off", // for simple-import-order
|
||||||
"import/prefer-default-export": "off", // why
|
"import/prefer-default-export": "off", // why
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ export const identityProjectServiceFactory = ({
|
|||||||
message: `Identity with id ${identityId} doesn't exists in project with id ${projectId}`
|
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(
|
const { permission: rolePermission } = await permissionService.getProjectPermissionByRole(
|
||||||
requestedRoleChange,
|
requestedRoleChange,
|
||||||
projectId
|
projectId
|
||||||
|
|||||||
Reference in New Issue
Block a user