aboutsummaryrefslogtreecommitdiff
path: root/database.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'database.tsx')
-rw-r--r--database.tsx15
1 files changed, 0 insertions, 15 deletions
diff --git a/database.tsx b/database.tsx
deleted file mode 100644
index 9c90326a5..000000000
--- a/database.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import { action, configure } from 'mobx';
-import * as mongodb from 'mongodb';
-
-export class database {
- private MongoClient = mongodb.MongoClient;
- private url = 'mongodb://localhost:27017/website';
-
- public async update(id: string, field: string, value: string) {
- this.MongoClient.connect(this.url, (err, db) => {
- let collection = db.collection('documents');
- collection.update({ "id": id }, { $set: { field: value } });
- db.close();
- });
- }
-}