mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 09:00:18 -06:00
fix: sonarqube medium vulnerability issues (#6362)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user