Fix sub manager

This commit is contained in:
Raven Scott
2026-05-31 01:28:57 -04:00
parent 4ef743514d
commit 59da891f66
3 changed files with 238 additions and 99 deletions
@@ -627,11 +627,11 @@ async function handleHolesailRoutes(req, res) {
return;
}
await subscriptionManager.setSubscribeAll(domain, true);
const result = await subscriptionManager.setSubscribeAll(domain, true);
broadcast({ type: 'update-holesail-clients' });
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ success: true }));
res.end(JSON.stringify({ success: true, ...result }));
} catch (err) {
logError('Admin', `Failed to set subscribe-all: ${err.message}`);
res.writeHead(500);