mirror of
https://github.com/unraid/api.git
synced 2026-01-19 06:59:40 -06:00
fix: docker containers not updating info correctly
This commit is contained in:
@@ -38,8 +38,17 @@ dee.on('*', async (data: { Type: string }) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const { json } = await modules.getApps();
|
||||
publish('info', 'UPDATED', json);
|
||||
// @todo: Create a system user for this
|
||||
const user = usersState.findOne({ name: 'root' });
|
||||
|
||||
if (user) {
|
||||
const { json } = await modules.getAppCount({
|
||||
user
|
||||
});
|
||||
publish('info', 'UPDATED', {
|
||||
apps: json
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
dee.listen();
|
||||
|
||||
Reference in New Issue
Block a user