Skip to content

Commit

Permalink
Merge pull request #1000 from akto-api-security/revert-999-fix_vulner…
Browse files Browse the repository at this point in the history
…able_collection_updation

Revert "remove account id check"
  • Loading branch information
ayushaga14 authored Apr 11, 2024
2 parents 68cf52f + 3208a3c commit 67867a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void runMainFunction() {
@Override
public void accept(Account account) {
Main.initializeRuntimeHelper();
//if (account.getId() != 1_000_000) return;
if (account.getId() != 1_000_000) return;
// only for 1M we want to run demo data
AccountHTTPCallParserAktoPolicyInfo info = new AccountHTTPCallParserAktoPolicyInfo();
HttpCallParser callParser = new HttpCallParser("userIdentifier", 1, 1, 1, false);
Expand Down Expand Up @@ -225,7 +225,7 @@ public static void addSampleData() {
for (SingleTypeInfo singleTypeInfo: params) {
urlList.add(singleTypeInfo.getUrl());
}
if (urlList.size() != 189) {
if (urlList.size() != 190) {
Utils.pushDataToKafka(VULNERABLE_API_COLLECTION_ID, "", result, new ArrayList<>(), true);
}

Expand Down

0 comments on commit 67867a6

Please sign in to comment.