forked from Yara724/api
YARA-1045
This commit is contained in:
8
src/helpers/expert-workflow-lock.ts
Normal file
8
src/helpers/expert-workflow-lock.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/** Expert blame/claim review assign + workflow lock TTL (POST assign, PUT lock). */
|
||||
export const EXPERT_WORKFLOW_LOCK_TTL_MS = 30 * 60 * 1000;
|
||||
|
||||
export function expertWorkflowLockExpiredAt(
|
||||
from: Date = new Date(),
|
||||
): Date {
|
||||
return new Date(from.getTime() + EXPERT_WORKFLOW_LOCK_TTL_MS);
|
||||
}
|
||||
Reference in New Issue
Block a user