Registration: linking a Hub install never blocks registering
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls1vMdni7EfytGYqQTprME
This commit is contained in:
@@ -154,7 +154,11 @@ router.post('/installs/register', registerLimiter, async (req, res) => {
|
||||
await prisma.installEvent.create({ data: { installId: install.id, type: 'registered', level: 'info', message: `${licence.install ? 'Re-registered' : 'Registered'} from ${url} (version ${install.version || '?'})`, resolvedAt: new Date() } });
|
||||
// A site the Hub installed (Servers → New install) is linked to its registration, so its
|
||||
// update and closing banners reach it (found in the VM test: they never did).
|
||||
await prisma.deployment.updateMany({ where: { licenceId: licence.id, installId: null }, data: { installId: install.id } }).catch(() => {});
|
||||
try {
|
||||
await prisma.deployment.updateMany({ where: { licenceId: licence.id, installId: null }, data: { installId: install.id } });
|
||||
} catch (e) {
|
||||
console.warn('[hub] linking the deployment to its install failed:', e?.message || e);
|
||||
}
|
||||
|
||||
res.status(201).json({
|
||||
installId: install.id,
|
||||
|
||||
Reference in New Issue
Block a user