summaryrefslogtreecommitdiff
path: root/src/api/models/access-token.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/models/access-token.ts')
-rw-r--r--src/api/models/access-token.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/models/access-token.ts b/src/api/models/access-token.ts
index a242865473..ff7189fa3b 100644
--- a/src/api/models/access-token.ts
+++ b/src/api/models/access-token.ts
@@ -1,8 +1,8 @@
import db from '../../db/mongodb';
-const collection = db.collection('access_tokens');
+const collection = db.get('access_tokens');
-collection.createIndex('token');
-collection.createIndex('hash');
+(collection as any).index('token'); // fuck type definition
+(collection as any).index('hash'); // fuck type definition
export default collection;