summaryrefslogtreecommitdiff
path: root/src/api/models/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/models/app.ts')
-rw-r--r--src/api/models/app.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/models/app.ts b/src/api/models/app.ts
index 39bb6cfa60..68d74be324 100644
--- a/src/api/models/app.ts
+++ b/src/api/models/app.ts
@@ -1,9 +1,9 @@
import db from '../../db/mongodb';
-const collection = db.collection('apps');
+const collection = db.get('apps');
-collection.createIndex('name_id');
-collection.createIndex('name_id_lower');
-collection.createIndex('secret');
+(collection as any).index('name_id'); // fuck type definition
+(collection as any).index('name_id_lower'); // fuck type definition
+(collection as any).index('secret'); // fuck type definition
export default collection;