mirror of
https://github.com/unraid/api.git
synced 2026-05-09 08:41:12 -05:00
fix: nest vars endpoint publish
This commit is contained in:
@@ -336,7 +336,9 @@ let hostname;
|
||||
// Update info/hostname when hostname changes
|
||||
bus.on('var', async data => {
|
||||
// Publish var changes
|
||||
await pubsub.publish('vars', data.var.node);
|
||||
await pubsub.publish('vars', {
|
||||
vars: data.var.node
|
||||
});
|
||||
|
||||
// Hostname changed
|
||||
if (hostname !== data.var.node.name) {
|
||||
|
||||
Reference in New Issue
Block a user