summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-01-30 19:58:02 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-01-30 19:58:02 +0100
commit4f9eb951ceb38b6962bf8bbb879ed7d7be837740 (patch)
tree4f799984d73c43b000662178511a15366cb6761e
parent:sparkles: RateLimit (diff)
downloadserver-4f9eb951ceb38b6962bf8bbb879ed7d7be837740.tar.xz
:sparkles: Database
Diffstat (limited to '')
-rw-r--r--src/models/database.ts0
-rw-r--r--src/util/Database.ts5
2 files changed, 5 insertions, 0 deletions
diff --git a/src/models/database.ts b/src/models/database.ts
deleted file mode 100644

index e69de29b..00000000 --- a/src/models/database.ts +++ /dev/null
diff --git a/src/util/Database.ts b/src/util/Database.ts new file mode 100644
index 00000000..af18d679 --- /dev/null +++ b/src/util/Database.ts
@@ -0,0 +1,5 @@ +import { MongoDatabase } from "lambert-db"; + +const db = new MongoDatabase("mongodb://127.0.0.1:27017/lambert?readPreference=secondaryPreferred"); + +export default db;