Skip to content

Commit

Permalink
Correct Deletion Database
Browse files Browse the repository at this point in the history
  • Loading branch information
Frankccv committed Oct 20, 2023
1 parent 22a0f4c commit 90b5137
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions www/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"port": 5000,
"max_connections": 0
},
"input_mode": "kafka",
"probe_analysis_mode": "online",
"input_mode": "file",
"probe_analysis_mode": "offline",
"pcap_dump": {
"folder": "/opt/mmt/probe/pcap/",
"interval": 3600
Expand Down
2 changes: 1 addition & 1 deletion www/routes/sancus/remediation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub_sub = require("../../libs/kafka");
const { Kafka } = require('kafkajs');
async function deleteDocuments(cid,attackId,collectionName) {
// Replace these with your MongoDB connection details
const uri = 'mongodb://localhost:27017'; // MongoDB connection URI
const uri = `mongodb://`+ config.database_server.host +`:`+config.database_server.port; // MongoDB connection URI
const dbName = 'mmt-data';
cid = `${cid}`;
attackId = parseInt(attackId, 10)
Expand Down

0 comments on commit 90b5137

Please sign in to comment.