forked from Yara724/api
YARA-739, YARA-740, YARA-741
This commit is contained in:
@@ -941,8 +941,8 @@ export class ExpertClaimService {
|
||||
|
||||
if (!isLockedByCurrentUser) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Also check if lock has expired (unlockTime has passed)
|
||||
if (request.unlockTime) {
|
||||
const unlockTime = new Date(request.unlockTime).getTime();
|
||||
@@ -1008,8 +1008,8 @@ export class ExpertClaimService {
|
||||
const unlockTime = new Date(request.unlockTime).getTime();
|
||||
const now = Date.now();
|
||||
if (now >= unlockTime) {
|
||||
throw new ForbiddenException("Your time has expired");
|
||||
}
|
||||
throw new ForbiddenException("Your time has expired");
|
||||
}
|
||||
} else if (request?.unlockTime == null && !request?.objection) {
|
||||
throw new ForbiddenException("Your time has expired");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user