review fixes

This commit is contained in:
x032205
2025-05-17 02:17:41 -04:00
parent 42319f01a7
commit 16c51af340
3 changed files with 23 additions and 2 deletions
@@ -60,7 +60,9 @@ export const secretSharingServiceFactory = ({
}
const fiveMins = 5 * 60 * 1000;
if (expiryTime - currentTime < fiveMins) {
// 1 second buffer
if (expiryTime - currentTime + 1000 < fiveMins) {
throw new BadRequestError({ message: "Expiration time cannot be less than 5 mins" });
}
};