Skip to content

Commit

Permalink
modify userSetEnvType set in create collection method
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushaga14 committed Jan 7, 2025
1 parent 32a779d commit b5e7d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/utils/src/main/java/com/akto/data_actor/DbLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public static void createCollectionSimpleForVpc(int vxlanId, String vpcId) {
Updates.set(ApiCollection.VXLAN_ID, vxlanId),
Updates.setOnInsert("startTs", Context.now()),
Updates.setOnInsert("urls", new HashSet<>()),
Updates.set("userSetEnvType", vpcId)
Updates.setOnInsert("userSetEnvType", vpcId)
),
updateOptions
);
Expand Down Expand Up @@ -405,7 +405,7 @@ public static void createCollectionForHostAndVpc(String host, int id, String vpc
Updates.setOnInsert("_id", id),
Updates.setOnInsert("startTs", Context.now()),
Updates.setOnInsert("urls", new HashSet<>()),
Updates.set("userSetEnvType", vpcId)
Updates.setOnInsert("userSetEnvType", vpcId)
);

ApiCollectionsDao.instance.getMCollection().findOneAndUpdate(Filters.eq(ApiCollection.HOST_NAME, host), updates, updateOptions);
Expand Down

0 comments on commit b5e7d3d

Please sign in to comment.