Browse Source

Merge pull request #372 from adamjerome/Bug-1089394

Modified REST statistics GET to return stat.name()
Jason 7 years ago
parent
commit
7681312849

+ 1 - 1
server/src/main/java/password/pwm/ws/server/rest/RestStatisticsServer.java

@@ -137,7 +137,7 @@ public class RestStatisticsServer extends RestServlet
         final Map<String, Object> outputValueMap = new TreeMap<>();
         final Map<String, Object> outputValueMap = new TreeMap<>();
         for ( final Statistic stat : Statistic.values() )
         for ( final Statistic stat : Statistic.values() )
         {
         {
-            outputValueMap.put( stat.getKey(), statisticsBundle.getStatistic( stat ) );
+            outputValueMap.put( stat.name(), statisticsBundle.getStatistic( stat ) );
         }
         }
 
 
         return outputValueMap;
         return outputValueMap;