diff --git a/backend/src/tasks/flagFloatingIps.ts b/backend/src/tasks/flagFloatingIps.ts index e09b655d..baab3bc1 100644 --- a/backend/src/tasks/flagFloatingIps.ts +++ b/backend/src/tasks/flagFloatingIps.ts @@ -25,4 +25,4 @@ export const handler = async (commandOptions: CommandOptions) => { } } } -}; \ No newline at end of file +}; diff --git a/backend/src/tasks/helpers/checkIpInCidr.ts b/backend/src/tasks/helpers/checkIpInCidr.ts index 2101abb3..2f7683ea 100644 --- a/backend/src/tasks/helpers/checkIpInCidr.ts +++ b/backend/src/tasks/helpers/checkIpInCidr.ts @@ -32,7 +32,7 @@ export default async ( where: { id: org.parent.id }, relations: ['sectors'] }); - + return parentOrg ? await isOrganizationExecutive(parentOrg) : false; } return false;