Commit 39d22c18 authored by Leo Iannacone's avatar Leo Iannacone

send only some values in status

parent 09ee2149
...@@ -71,6 +71,9 @@ class Client ...@@ -71,6 +71,9 @@ class Client
pack.version = info[1] pack.version = info[1]
pack.orig_name = p pack.orig_name = p
read_package_status {distribution: data.distribution, package: pack}, (content) => read_package_status {distribution: data.distribution, package: pack}, (content) =>
for attr of content
if attr not in ['distribution', 'package', 'status', 'success']
delete content[attr]
@socket.emit e.distribution_packages_status, content @socket.emit e.distribution_packages_status, content
data.distribution.packages.push pack data.distribution.packages.push pack
@socket.emit e.distribution_packages, data @socket.emit e.distribution_packages, data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment