fix: docker containers not updating info correctly

This commit is contained in:
Alexis Tyler
2020-10-19 18:23:22 +10:30
parent fe67acbabb
commit e2aeeb9aa9

View File

@@ -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();