(filters = [])
| 44 | } |
| 45 | |
| 46 | subscribe(filters = []) { |
| 47 | this.store.setState('task_subscription', JSON.stringify({ |
| 48 | enabled: true, |
| 49 | filters, |
| 50 | subscribed_at: new Date().toISOString(), |
| 51 | })); |
| 52 | const result = this.store.send({ |
| 53 | type: 'task_subscribe', |
| 54 | payload: { capability_filter: filters }, |
| 55 | }); |
| 56 | return result; |
| 57 | } |
| 58 | |
| 59 | unsubscribe() { |
| 60 | this.store.setState('task_subscription', JSON.stringify({ |
no test coverage detected