We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e733ae8 commit 0c5bc3eCopy full SHA for 0c5bc3e
apps/threat-detection/src/main/java/com/akto/threat/detection/crons/ApiCountInfoRelayCron.java
@@ -52,6 +52,10 @@ public void run(){
52
53
// build api hit count payload and call cyborg
54
List<ApiHitCountInfo> hitCountInfos = ApiCountInfoRelayUtils.buildPayload(keyValData);
55
+ if (hitCountInfos == null || hitCountInfos.size() == 0) {
56
+ logger.info("hitCountInfos is empty, returning");
57
+ return;
58
+ }
59
try {
60
dataActor.bulkInsertApiHitCount(hitCountInfos);
61
cache.set(RedisKeyInfo.API_COUNTER_RELAY_LAST_UPDATE_TS, endBinId);
0 commit comments