greptile review fixes

This commit is contained in:
x032205
2025-05-16 18:54:57 -04:00
parent 0ea9f9b60d
commit 42319f01a7
4 changed files with 10 additions and 4 deletions
@@ -97,6 +97,7 @@ export const secretSharingServiceFactory = ({
const expiresAtTimestamp = new Date(expiresAt).getTime();
const lifetime = expiresAtTimestamp - new Date().getTime();
// org.maxSharedSecretLifetime is in seconds
if (org.maxSharedSecretLifetime && lifetime / 1000 > org.maxSharedSecretLifetime) {
throw new BadRequestError({ message: "Secret lifetime exceeds organization limit" });
}