diff --git a/resources/js/components/RelatedEntries.vue b/resources/js/components/RelatedEntries.vue index db172e1eb..3137e9b34 100644 --- a/resources/js/components/RelatedEntries.vue +++ b/resources/js/components/RelatedEntries.vue @@ -138,7 +138,7 @@ queriesSummary() { return { time: _.reduce(this.queries, (time, q) => { return time + parseFloat(q.content.time) }, 0.00), - duplicated: this.queries.length - _.size(_.groupBy(this.queries, 'family_hash')), + duplicated: this.queries.length - _.size(_.groupBy(this.queries, (q) => { return q.content.hash })), }; }, diff --git a/src/Watchers/QueryWatcher.php b/src/Watchers/QueryWatcher.php index 0baa1fc7b..1f1ab9eec 100644 --- a/src/Watchers/QueryWatcher.php +++ b/src/Watchers/QueryWatcher.php @@ -45,7 +45,8 @@ public function recordQuery(QueryExecuted $event) 'slow' => isset($this->options['slow']) && $time >= $this->options['slow'], 'file' => $caller['file'], 'line' => $caller['line'], - ])->tags($this->tags($event))->withFamilyHash($this->familyHash($event))); + 'hash' => $this->familyHash($event), + ])->tags($this->tags($event))); } /**