// Bulk-mark every mitra row online in mitra_online_status. Used as a setup // step at the start of each Maestro flow so seed_history_session has at // least one online mitra to pick, regardless of what previous tests did // (e.g. force-mitra-offline lingering from a prior TS-02/TS-03 run). // // Backed by /internal/_test/reset-all-mitras-online. const url = BACKEND_INTERNAL_URL || 'http://localhost:3001' const resp = http.post(`${url}/internal/_test/reset-all-mitras-online`, { headers: { 'Content-Type': 'application/json' }, body: '{}', }) if (resp.status !== 200) { throw new Error(`reset-all-mitras-online failed (${resp.status}): ${resp.body}`) } const data = json(resp.body) output.ONLINE_COUNT = data.online_count