feat: server-state baseline (Appium-fallback, event-dedupe, retry-semantics, webhook-reg, unlimited-limit)

This commit is contained in:
Eddy de Vink 2026-09-24 22:07:14 +02:00
commit 1d5a233f68
4 changed files with 129 additions and 8 deletions

View file

@ -1,4 +1,7 @@
const MAX_REQUESTS_PER_DAY = parseInt(process.env.MAX_REQUESTS_PER_DAY, 10) || 5
const configuredLimit = parseInt(process.env.MAX_REQUESTS_PER_DAY, 10)
const MAX_REQUESTS_PER_DAY = Number.isFinite(configuredLimit) && configuredLimit > 0
? configuredLimit
: Infinity
const userCounts = new Map()
let currentDate = new Date().toDateString()