Skip to content

Commit 58fc142

Browse files
Merge pull request #22 from marvincaspar/master
Fix order count reset
2 parents f20ea4c + 5291ac5 commit 58fc142

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
66
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.0.1] - 2021-05-31
9+
10+
### Fixed
11+
12+
- Fix order count reset
13+
814
## [2.0.0] - 2020-05-15
915

1016
### Added

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "run_as_root/magento2-prometheus-exporter",
33
"description": "Magento2 Prometheus Exporter",
4+
"version": "2.0.1",
45
"type": "magento2-module",
56
"license": "MIT",
67
"homepage": "https://github.com/run-as-root/magento2-prometheus-exporter",
@@ -9,7 +10,11 @@
910
"email": "info@run-as-root.sh",
1011
"source": "https://github.com/run-as-root/magento2-prometheus-exporter"
1112
},
12-
"keywords": ["magento", "magento2", "magento2-module"],
13+
"keywords": [
14+
"magento",
15+
"magento2",
16+
"magento2-module"
17+
],
1318
"authors": [
1419
{
1520
"name": "David Lambauer",
@@ -40,4 +45,4 @@
4045
"RunAsRoot\\PrometheusExporter\\Test\\": "Test/"
4146
}
4247
}
43-
}
48+
}

src/Aggregator/Order/OrderCountAggregator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function aggregate(): bool
7676
$countByStore[$storeCode] = [];
7777
}
7878

79-
if (!array_key_exists($state, $countByStore)) {
79+
if (!array_key_exists($state, $countByStore[$storeCode])) {
8080
$countByStore[$storeCode][$state] = 0;
8181
}
8282

0 commit comments

Comments
 (0)