Hub 2.7.0: emergency updates as soon as possible; events on now need a second yes
asap (emergency only, reason + 2FA) queues the update now; the church is told it's happening now. A church whose Events heartbeat reports an event on now (stats.live, Events 3.2.0) refuses an emergency update with LIVE_EVENT until confirmLive. Both update forms offer "As soon as possible" and ask again for a live event. Contracts 1.10.0 vendored. 4 new tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -211,7 +211,7 @@ router.post('/deployments/:id/uninstall', wrap(async (req, res) => {
|
||||
|
||||
router.post('/updates', wrap(async (req, res) => {
|
||||
const out = await jobs.scheduleUpdate(req.body || {}, req.admin);
|
||||
await audit(req, req.body?.emergency ? 'emergency_update_scheduled' : 'update_scheduled', out.batchId || out.jobs[0]?.id, { deployments: req.body?.deploymentIds, version: req.body?.version, at: req.body?.at, reason: req.body?.reason || null });
|
||||
await audit(req, req.body?.emergency ? 'emergency_update_scheduled' : 'update_scheduled', out.batchId || out.jobs[0]?.id, { deployments: req.body?.deploymentIds, version: req.body?.version, at: req.body?.asap ? 'as soon as possible' : req.body?.at, reason: req.body?.reason || null, ...(req.body?.confirmLive ? { duringLiveEvent: true } : {}) });
|
||||
res.status(201).json(out);
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user