fix: sonarqube medium vulnerability issues (#6362)

This commit is contained in:
Piyush Gupta
2025-08-06 16:53:27 +05:30
committed by GitHub
parent b5f0bd8f9a
commit 282b3e070c
4 changed files with 4 additions and 13 deletions

View File

@@ -13,7 +13,7 @@ export default function GlobalError({ error }: { error: Error & { digest?: strin
}
}, [error]);
return (
<html>
<html lang="en-US">
<body>
<NextError statusCode={0} />
</body>

View File

@@ -224,16 +224,8 @@ export const getMonthlyActiveOrganizationPeopleCount = reactCache(
async (organizationId: string): Promise<number> => {
validateInputs([organizationId, ZId]);
try {
// temporary solution until we have a better way to track active users
return 0;
} catch (error) {
if (error instanceof Prisma.PrismaClientKnownRequestError) {
throw new DatabaseError(error.message);
}
throw error;
}
// temporary solution until we have a better way to track active users
return 0;
}
);