Browse Source
Merge pull request #12544 from deaflynx/fix/data-subscription-cmds-key-duplicates
Entity data subscription cmds prepare keys without duplicates.
pull/12568/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
ui-ngx/src/app/core/api/entity-data-subscription.ts
|
|
|
@ -685,7 +685,7 @@ export class EntityDataSubscription { |
|
|
|
if (this.tsFields.length > 0) { |
|
|
|
if (this.history) { |
|
|
|
cmd.historyCmd = { |
|
|
|
keys: this.tsFields.map(key => key.key), |
|
|
|
keys: [... new Set(this.tsFields.map(key => key.key))], |
|
|
|
startTs: this.subsTw.fixedWindow.startTimeMs, |
|
|
|
endTs: this.subsTw.fixedWindow.endTimeMs, |
|
|
|
interval: 0, |
|
|
|
@ -702,7 +702,7 @@ export class EntityDataSubscription { |
|
|
|
} |
|
|
|
} else { |
|
|
|
cmd.tsCmd = { |
|
|
|
keys: this.tsFields.map(key => key.key), |
|
|
|
keys: [... new Set(this.tsFields.map(key => key.key))], |
|
|
|
startTs: this.subsTw.startTs, |
|
|
|
timeWindow: this.subsTw.aggregation.timeWindow, |
|
|
|
interval: 0, |
|
|
|
|