forked from snxraven/p2ns
Fix sub manager
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user