Skip to content

Commit 7353151

Browse files
committed
Small fixes
1 parent 25d6636 commit 7353151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/no/nav/pto/veilarbportefolje/huskelapp/HuskelappStats.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void bindTo(@NonNull MeterRegistry meterRegistry) {
3939

4040
}
4141

42-
@Scheduled(cron = "0 */6 * * * *")
42+
@Scheduled(cron = "0 */1 * * * *")
4343
public void oppdaterMetrikk() {
4444
try {
4545
huskelappStats.clear();
@@ -48,7 +48,7 @@ public void oppdaterMetrikk() {
4848
Map<String, Integer> huskelappAntall = this.jdbcTemplate.queryForObject(query, (rs, rowNum) -> {
4949
Map<String, Integer> stats = new HashMap<>();
5050
while (rs.next()) {
51-
huskelappStats.put(rs.getString(HUSKELAPP.ENHET_ID), rs.getInt("huskelapp_antall"));
51+
stats.put(rs.getString(HUSKELAPP.ENHET_ID), rs.getInt("huskelapp_antall"));
5252
}
5353
return stats;
5454
}

0 commit comments

Comments
 (0)