Adopt: pass the church's address; Link: the short name is a name
crosscode adopt can only work out the church's address from an events.<address> domain, and the Hub never sent --address, so adopting a site like events-demo.crosscode.co.za failed on the server. The adopt form now asks for the address (required for such domains), the Hub refuses to plan the move without it, and it goes into the job's arguments. Link existing: the short name field and its error say it's a name like `hope`, not a folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -166,7 +166,7 @@ router.post('/deployments/:id/proxy-done', wrap(async (req, res) => {
|
||||
}));
|
||||
|
||||
router.post('/deployments/:id/adopt', wrap(async (req, res) => {
|
||||
const job = await jobs.scheduleAdopt({ deploymentId: req.params.id, eventsDir: req.body?.eventsDir, version: req.body?.version, at: req.body?.at }, req.admin);
|
||||
const job = await jobs.scheduleAdopt({ deploymentId: req.params.id, eventsDir: req.body?.eventsDir, version: req.body?.version, address: req.body?.address, at: req.body?.at }, req.admin);
|
||||
await audit(req, 'adopt_scheduled', req.params.id, { job: job.id, at: job.notBefore });
|
||||
res.status(201).json({ job });
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user