fix: fallback to default arbiter_service_id in explicit channel leases
Explicit leases created by failover didn't include arbiter_service_id, causing arbiter verdict to never be saved (pairedExecutionContext was undefined). Now falls back to ARBITER_SERVICE_ID from config when the stored lease has null arbiter_service_id.
This commit is contained in:
@@ -45,6 +45,8 @@ function normalizeLeaseRow(
|
|||||||
: null,
|
: null,
|
||||||
arbiter_service_id: row.arbiter_service_id
|
arbiter_service_id: row.arbiter_service_id
|
||||||
? normalizeServiceId(row.arbiter_service_id)
|
? normalizeServiceId(row.arbiter_service_id)
|
||||||
|
: isArbiterEnabled()
|
||||||
|
? ARBITER_SERVICE_ID
|
||||||
: null,
|
: null,
|
||||||
activated_at: row.activated_at,
|
activated_at: row.activated_at,
|
||||||
reason: row.reason,
|
reason: row.reason,
|
||||||
|
|||||||
Reference in New Issue
Block a user