Commit 0e93e265 authored by Armand PUCCETTI's avatar Armand PUCCETTI
Browse files

removed ref to node_modules/common.js

parent e0a84f09
......@@ -4,7 +4,7 @@ const MongoClient = require('mongodb').MongoClient;
const assert = require ('assert');
const path = require ('path');
const fs = require ('fs');
const common = require ('common');
const common = require ('./common');
const host = process.env.PKMHOST;
const url = 'mongodb://' + host + ':27017';
......
......@@ -4,7 +4,7 @@ const MongoClient = require('mongodb').MongoClient;
const assert = require ('assert');
const path = require ('path');
const fs = require ('fs');
const common = require ('common.js');
const common = require ('./common.js');
const host=process.env.PKMHOST;
const url = 'mongodb://' + host + ':27017';
......
......@@ -2,7 +2,7 @@
const path = require('path');
const MongoClient = require('mongodb').MongoClient;
const common = require('common');
const common = require('./common');
const assert = require ('assert');
const fs = require ('fs');
......
......@@ -5,7 +5,7 @@
var MongoClient = require('mongodb').MongoClient;
const assert = require ('assert');
const fs = require ('fs');
const common = require('common');
const common = require('./common');
const url = 'mongodb://localhost:27017 ';
const client = new MongoClient(url,{ useUnifiedTopology: true });
const dbName = process.argv[2];
......
......@@ -6,7 +6,7 @@ const path = require('path');
const MongoClient = require('mongodb').MongoClient;
const assert = require ('assert');
const fs = require ('fs');
const common = require('common');
const common = require('./common');
const host=process.env.PKMHOST;
const url = 'mongodb://'+ host + ':27017';
......
......@@ -3,7 +3,7 @@
const path = require('path');
const MongoClient = require('mongodb').MongoClient;
const assert = require ('assert');
const common = require ('common');
const common = require ('./common');
const fs = require ('fs');
const md2json = require('md-2-json');
const host=process.env.PKMHOST;
......
......@@ -4,7 +4,7 @@ const path = require('path');
const MongoClient = require('mongodb').MongoClient;
const assert = require ('assert');
const fs = require ('fs');
const common = require('common');
const common = require('./common');
const host=process.env.PKMHOST;
const url = 'mongodb://'+ host + ':27017';
......
../common.js
\ No newline at end of file
......@@ -4,7 +4,7 @@ const path = require('path');
const MongoClient = require('mongodb').MongoClient;
const assert = require ('assert');
const fs = require ('fs');
const common = require('common');
const common = require('./common');
const host = process.env.PKMHOST;
const url = 'mongodb://' + host + ':27017';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment