|
|
@@ -11,9 +11,9 @@ module.exports = (app, hosts) => {
|
|
|
let list = app.state.list
|
|
|
Agent.pact('checkNeedRemoteRefresh', list, hosts)
|
|
|
.then(list => {
|
|
|
+ Agent.emit('refresh_end', hosts.id)
|
|
|
if (!list) return
|
|
|
Agent.emit('list_updated', list)
|
|
|
- Agent.emit('refresh_end', hosts.id)
|
|
|
})
|
|
|
.catch(e => {
|
|
|
console.log(e)
|