Skip to content

Commit

Permalink
Fix stats 2
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrneDev committed Jul 28, 2021
1 parent dd5c447 commit eb21c32
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions BeyondCode/src/Statistics/Stores/DatabaseStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function getRecords(callable $processQuery = null, callable $processColle
->when(!is_null($processCollection), function ($collection) use ($processCollection) {
return call_user_func($processCollection, $collection);
})
->reverse()
->map(function (WebSocketsStatisticsEntry $statistic) {
return $this->statisticToArray($statistic);
})
Expand Down
2 changes: 1 addition & 1 deletion js/dist/admin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/src/admin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ app.initializers.add('kyrne-websocket', app => {
.registerPage(WebsocketPage);

extend(DashboardPage.prototype, 'availableWidgets', widgets => {
widgets.add('statistics', <WebsocketStatsWidget/>, 20);
widgets.add('websocketstatistics', <WebsocketStatsWidget/>, 15);
});
});

0 comments on commit eb21c32

Please sign in to comment.