Skip to content

Commit

Permalink
fix: fixed multidevice behavior for fakedata
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jul 5, 2022
1 parent c2b80c3 commit 48d942e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stores/activity.ts
Expand Up @@ -170,8 +170,12 @@ export const useActivityStore = defineStore('activity', {
if (this.window.available) {
if (multidevice) {
const hostnames = bucketsStore.hosts.filter(
// require that the host has window buckets,
// and that the host is not a fakedata host,
// unless we're explicitly querying fakedata
host =>
bucketsStore.windowBucketsByHost(host).length > 0 && !host.startsWith('fakedata')
bucketsStore.windowBucketsByHost(host).length > 0 &&
(!host.startsWith('fakedata') || query_options.host.startsWith('fakedata'))
);
console.info('Including hosts in multiquery: ', hostnames);
await this.query_multidevice_full(query_options, hostnames);
Expand Down

1 comment on commit 48d942e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.0b2 (click to expand)

Screenshots using aw-server-rust v0.12.0b2 (click to expand)

CML watermark

Please sign in to comment.