INNER CODE UNIT · JavaScript
holds
bostrot/wsl2-distro-manager · n8n/licensing/seat_check.js:204
const holds = holders.some((h) => h.id === deviceId);
if (!holds) {
entry.denied_at = nowIso;
const result = invalid(
'seat_taken',
'This licence is in use on another PC. Enter the key again here to move it.'
);
result.response.seats = seats;
result.response.seats_used = holders.length;
result.devices = prune(entries, holders, now);
return result;
}
return {
valid: true,
reason: action,
response: validResponse(row, {
seats_used: holders.length,