From 5dc346ca24234b66e1269256a8f5e0e4cc787966 Mon Sep 17 00:00:00 2001 From: jamie michel <jamie.michel@hotmail.com> Date: Sat, 22 May 2021 14:23:09 +0100 Subject: [PATCH] working DB --- NodeAPI/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeAPI/index.js b/NodeAPI/index.js index 46e57cc..064b4a6 100644 --- a/NodeAPI/index.js +++ b/NodeAPI/index.js @@ -41,7 +41,7 @@ app.post('/predict', (req,res) => { if(err) { return console.dir(err); } // Create collection if does not exist - var collection = db.createCollection('Pred_Records'); + var collection = db.db('ClusterNLP').collection('Pred_Records'); // Get the data to be stored var plot = req.body.plot; -- GitLab