From 3d54ed476240702812caf0b6e1ce94bfb0329cb5 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 10 Feb 2021 20:59:58 +0100 Subject: fix models + move schemas in api and gateway --- dist/server-util/src/util/Database.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dist/server-util/src/util/Database.js (limited to 'dist/server-util/src/util/Database.js') diff --git a/dist/server-util/src/util/Database.js b/dist/server-util/src/util/Database.js new file mode 100644 index 00000000..9ac6eeeb --- /dev/null +++ b/dist/server-util/src/util/Database.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const lambert_db_1 = require("lambert-db"); +// TODO: load url from config +const db = new lambert_db_1.MongoDatabase("mongodb://127.0.0.1:27017/lambert?readPreference=secondaryPreferred", { + useNewUrlParser: true, + useUnifiedTopology: false, +}); +exports.default = db; +//# sourceMappingURL=Database.js.map \ No newline at end of file -- cgit 1.5.1